/* =============================================
   SILIQ Resources Page Styles
   ============================================= */

.resources-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    text-align: center;
}

.resources-hero h1 {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.resources-hero p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

.resources-section {
    padding: 60px 0 80px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Resource Card */
.resource-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-subtle);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.resource-icon svg {
    width: 28px;
    height: 28px;
}

.resource-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gold-subtle);
    color: var(--gold);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
}

.resource-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.resource-card > p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

.resource-includes {
    list-style: none;
    margin-bottom: 24px;
    flex-grow: 1;
}

.resource-includes li {
    position: relative;
    padding-left: 24px;
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

.resource-includes li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    background: var(--accent-subtle);
    border-radius: 50%;
    border: 2px solid var(--accent);
}

.resource-download-btn {
    width: 100%;
    margin-top: auto;
}

/* Download Modal */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.download-modal.active {
    display: flex;
}

.download-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.download-modal-content {
    position: relative;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.download-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-lighter);
    transition: color var(--transition);
}

.download-modal-close:hover {
    color: var(--text);
}

.download-modal-icon {
    color: var(--accent);
    margin-bottom: 16px;
}

.download-modal-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.download-modal-content > p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.download-form-group {
    margin-bottom: 12px;
}

.download-form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--font-zh);
    transition: border-color var(--transition);
}

.download-form-group input:focus {
    outline: none;
    border-color: var(--accent);
}

.download-privacy {
    font-size: 0.78rem;
    color: var(--text-lighter);
    margin-top: 12px;
}

/* Success State */
.success-icon {
    color: #27ae60;
    margin-bottom: 16px;
}

.download-success h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.download-success p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .resources-hero h1 {
        font-size: 1.8rem;
    }

    .resource-card {
        padding: 28px 20px;
    }

    .download-modal-content {
        padding: 28px 20px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-link.active {
    color: var(--accent);
}
