/* ============================================
   SERVICES-PREMIUM.CSS - Services Section Styles
   Çerçeve Atölyesi Premium Website
   ============================================ */

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(201, 169, 89, 0.03) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-header__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   SERVICES GRID
   ============================================ */

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

/* ============================================
   SERVICE CARD
   ============================================ */

.service-card {
    position: relative;
    padding: 40px 32px;
    background: #ffffff;
    border-radius: 24px;
    border: 2px solid rgba(201, 169, 89, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(201, 169, 89, 0.05) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 169, 89, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ============================================
   SERVICE CARD GRADIENT
   ============================================ */

.service-card__gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9A959 0%, #E8D39F 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card__gradient {
    transform: scaleX(1);
}

/* ============================================
   SERVICE CARD CONTENT
   ============================================ */

.service-card__content {
    position: relative;
    z-index: 1;
}

/* ============================================
   SERVICE CARD ICON
   ============================================ */

.service-card__icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card__icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #C9A959 0%, #E8D39F 100%);
    border-radius: 16px;
    opacity: 0.1;
    transition: all 0.4s ease;
}

.service-card:hover .service-card__icon-bg {
    opacity: 0.2;
    transform: rotate(5deg) scale(1.1);
}

.service-card__icon-svg {
    position: relative;
    z-index: 1;
    color: #C9A959;
    width: 32px;
    height: 32px;
    transition: all 0.4s ease;
}

.service-card:hover .service-card__icon-svg {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 4px 8px rgba(201, 169, 89, 0.3));
}

/* ============================================
   SERVICE CARD TEXT
   ============================================ */

.service-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
    color: #C9A959;
}

.service-card__description {
    font-size: 1rem;
    color: #666;
    line-height: 1.7;
    transition: color 0.3s ease;
}

.service-card:hover .service-card__description {
    color: #555;
}

/* ============================================
   SERVICE CARD FEATURES
   ============================================ */

.service-card__features {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.service-card__feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 0.9375rem;
    color: #666;
}

.service-card__feature::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(201, 169, 89, 0.1);
    color: #C9A959;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
}

/* ============================================
   SERVICE CARD CTA
   ============================================ */

.service-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #C9A959;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-card__cta:hover {
    gap: 12px;
    color: #B89849;
}

.service-card__cta::after {
    content: '→';
    transition: transform 0.3s ease;
}

.service-card__cta:hover::after {
    transform: translateX(4px);
}

/* ============================================
   SERVICE CARD BADGE
   ============================================ */

.service-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #C9A959 0%, #E8D39F 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(201, 169, 89, 0.3);
}

/* ============================================
   3D HOVER EFFECT
   ============================================ */

.service-card--3d {
    perspective: 1000px;
}

.service-card--3d:hover {
    transform: translateY(-8px) rotateX(2deg);
}

/* ============================================
   GLOW EFFECT
   ============================================ */

.service-card--glow:hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 0 40px rgba(201, 169, 89, 0.15);
}

/* ============================================
   SPECIAL CARDS
   ============================================ */

.service-card--featured {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-color: rgba(201, 169, 89, 0.3);
}

.service-card--featured::after {
    content: '★';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #C9A959;
    opacity: 0.3;
}

.service-card--premium {
    background: linear-gradient(
        135deg,
        rgba(201, 169, 89, 0.05) 0%,
        #ffffff 100%
    );
}

/* ============================================
   LOADING STATE
   ============================================ */

.service-card.loading {
    pointer-events: none;
    opacity: 0.6;
}

.service-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 3px solid rgba(201, 169, 89, 0.2);
    border-top-color: #C9A959;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 1024px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .services__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 32px 24px;
    }

    .service-card__icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    .service-card__icon-svg {
        width: 28px;
        height: 28px;
    }

    .service-card__title {
        font-size: 1.375rem;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 60px 0;
    }

    .section-header__title {
        font-size: 1.75rem;
    }

    .section-header__subtitle {
        font-size: 0.9375rem;
    }

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

    .service-card__icon {
        width: 48px;
        height: 48px;
    }

    .service-card__icon-svg {
        width: 24px;
        height: 24px;
    }

    .service-card__title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .service-card__description {
        font-size: 0.9375rem;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    .service-card {
        background: #1a1a1a;
        border-color: rgba(201, 169, 89, 0.2);
    }

    .service-card__title {
        color: #ffffff;
    }

    .service-card__description {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .services {
        padding: 40px 0;
    }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        page-break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd;
    }

    .service-card__icon-bg {
        opacity: 0.2 !important;
    }
}
