/* static/css/links.css */

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-bottom: 3rem;
}

.link-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s;
}

.link-card:hover {
    border-color: rgba(108, 60, 225, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .link-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card .card-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.link-card .card-top .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.link-card:hover .card-top .icon-box {
    transform: scale(1.05) rotate(3deg);
}

.link-card .card-top .icon-box.purple {
    background: rgba(108, 60, 225, 0.1);
    color: var(--primary-light);
}

.link-card .card-top .icon-box.pink {
    background: rgba(236, 72, 153, 0.08);
    color: var(--secondary);
}

.link-card .card-top .icon-box.gold {
    background: rgba(245, 158, 11, 0.08);
    color: var(--gold);
}

.link-card .card-top .icon-box.green {
    background: rgba(16, 185, 129, 0.08);
    color: var(--success);
}

.link-card .card-top .icon-box.cyan {
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent);
}

.link-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.link-card .card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.link-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.2rem 0;
}

.link-card .card-link:hover {
    color: white;
    gap: 0.6rem;
}

[data-theme="light"] .link-card .card-link:hover {
    color: var(--primary);
}

.link-card .card-link i {
    font-size: 0.6rem;
    transition: transform 0.3s;
}

.link-card .card-link:hover i {
    transform: translateX(-4px);
}

.link-card .badge-tag {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    font-size: 0.5rem;
    padding: 0.1rem 0.6rem;
    border-radius: 50px;
    background: rgba(108, 60, 225, 0.04);
    color: var(--primary-light);
    border: 1px solid rgba(108, 60, 225, 0.03);
    animation: badgePulse 3s infinite alternate;
}

@keyframes badgePulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.link-card .badge-tag.gold {
    background: rgba(245, 158, 11, 0.04);
    color: var(--gold);
    border-color: rgba(245, 158, 11, 0.03);
}

.link-card .badge-tag.green {
    background: rgba(16, 185, 129, 0.04);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.03);
}

.link-card .badge-tag.pink {
    background: rgba(236, 72, 153, 0.04);
    color: var(--secondary);
    border-color: rgba(236, 72, 153, 0.03);
}

/* ===== ارتباط با ما ===== */
.contact-section {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.03), rgba(236, 72, 153, 0.015));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-bottom: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .contact-section {
    background: rgba(108, 60, 225, 0.02);
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(108, 60, 225, 0.01), transparent 70%);
    animation: contactGlow 8s infinite alternate;
}

@keyframes contactGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    100% { transform: translate(-20%, -20%) scale(1.2); opacity: 0.5; }
}

.contact-section:hover {
    border-color: rgba(108, 60, 225, 0.06);
}

.contact-section .contact-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.contact-section .contact-header i {
    font-size: 1.8rem;
    color: var(--gold);
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.08));
    animation: crownGlow 3s infinite alternate;
}

.contact-section .contact-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.contact-section .contact-header h3 span {
    background: linear-gradient(135deg, var(--gold), #D97706);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0.8rem;
    border-radius: 40px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

[data-theme="light"] .contact-item {
    background: rgba(0, 0, 0, 0.02);
}

.contact-item:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(108, 60, 225, 0.06);
    transform: translateX(-3px);
}

[data-theme="light"] .contact-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.contact-item i {
    font-size: 1rem;
    color: var(--primary-light);
    width: 20px;
    text-align: center;
}

.contact-item .info {
    display: flex;
    flex-direction: column;
}

.contact-item .info .label {
    font-size: 0.5rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.contact-item .info .value {
    font-size: 0.75rem;
    font-weight: 500;
}

.contact-item .info .value a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item .info .value a:hover {
    color: white;
}

[data-theme="light"] .contact-item .info .value a:hover {
    color: var(--primary);
}

/* ===== اشتراک‌گذاری ===== */
.share-section {
    background: linear-gradient(135deg, rgba(108, 60, 225, 0.03), rgba(236, 72, 153, 0.015));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.8rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .share-section {
    background: rgba(108, 60, 225, 0.02);
}

.share-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.01), transparent 70%);
    animation: shareGlow 8s infinite alternate;
}

@keyframes shareGlow {
    0% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    100% { transform: translate(20%, 20%) scale(1.2); opacity: 0.5; }
}

.share-section .share-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    position: relative;
    z-index: 1;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="light"] .share-btn {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-main);
}

.share-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 60, 225, 0.1);
}

.share-btn.telegram {
    background: rgba(0, 136, 204, 0.08);
    border-color: rgba(0, 136, 204, 0.08);
    color: #0088cc;
}

.share-btn.telegram:hover {
    background: rgba(0, 136, 204, 0.15);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.1);
}

.share-btn.whatsapp {
    background: rgba(37, 211, 102, 0.08);
    border-color: rgba(37, 211, 102, 0.08);
    color: #25D366;
}

.share-btn.whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.1);
}

.share-btn.twitter {
    background: rgba(29, 161, 242, 0.08);
    border-color: rgba(29, 161, 242, 0.08);
    color: #1DA1F2;
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.15);
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.1);
}

.share-btn.copy {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.08);
    color: var(--primary-light);
}

.share-btn.copy:hover {
    background: rgba(139, 92, 246, 0.15);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.1);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr !important;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    .share-btn {
        width: 100%;
        justify-content: center;
    }
}