/* Isı Yalıtım Malzemeleri - Premium Redesign */

/* Override subpage-header for this page */
.subpage-header {
    padding: 140px 0 60px;
}

/* ========================================
   MAIN LAYOUT
   ======================================== */

.malzeme-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem;
}

/* ========================================
   SECTION HEADER
   ======================================== */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header.left-aligned {
    text-align: left;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-heading-tech);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.header-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), #ef4444);
    margin: 0 auto;
    border-radius: 2px;
}

.section-header.left-aligned .header-line {
    margin: 0;
}

/* ========================================
   INTRO SECTION
   ======================================== */

.intro-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.intro-highlight {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    padding: 1.25rem;
    background: rgba(245, 158, 11, 0.08);
    border-left: 3px solid var(--color-accent);
    border-radius: 0 8px 8px 0;
}

.intro-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* ========================================
   PROPERTIES SECTION
   ======================================== */

.properties-section {
    margin-bottom: 5rem;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.property-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: cardReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.property-card[data-index="1"] {
    animation-delay: 0.1s;
}

.property-card[data-index="2"] {
    animation-delay: 0.2s;
}

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.property-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(239, 68, 68, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.property-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-accent);
}

.property-card:hover .property-icon {
    transform: scale(1.1) rotate(5deg);
}

.property-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.property-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ========================================
   STRUCTURE TYPES SECTION
   ======================================== */

.structure-section {
    margin-bottom: 5rem;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.structure-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.75rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: cardReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.structure-card[data-type="1"] {
    animation-delay: 0.15s;
}

.structure-card[data-type="2"] {
    animation-delay: 0.25s;
}

.structure-card[data-type="3"] {
    animation-delay: 0.35s;
}

.structure-card[data-type="4"] {
    animation-delay: 0.45s;
}

.structure-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* EPS card hover - orange/red gradient */
.structure-card[data-type="1"]:hover {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(245, 158, 11, 0.15);
}

/* Lifli card hover - green/blue gradient */
.structure-card[data-type="2"]:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(16, 185, 129, 0.15);
}

/* Hucreli card hover - blue/purple gradient */
.structure-card[data-type="3"]:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(59, 130, 246, 0.15);
}

/* Reflektif card hover - purple/pink gradient */
.structure-card[data-type="4"]:hover {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(139, 92, 246, 0.15);
}

.structure-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    margin-bottom: 1rem;
}

.structure-badge.lifli {
    background: linear-gradient(135deg, #10b981, #3b82f6);
}

.structure-badge.hucreli {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}

.structure-badge.reflektif {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.structure-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.structure-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Card accent colors matching badges */
.structure-card[data-type="2"] .card-accent {
    background: linear-gradient(90deg, #10b981, #3b82f6);
}

.structure-card[data-type="3"] .card-accent {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

.structure-card[data-type="4"] .card-accent {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
}

.structure-card:hover .card-accent {
    width: 100%;
}

/* ========================================
   USAGE SECTION - TAB SYSTEM
   ======================================== */

.usage-section {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 3rem;
}

.usage-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.usage-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.usage-tab {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.usage-tab:hover {
    transform: translateX(8px);
    border-color: rgba(226, 220, 74, 0.3);
    background: rgba(226, 220, 74, 0.05);
}

.usage-tab.active {
    border-color: rgba(226, 220, 74, 0.5);
    background: rgba(226, 220, 74, 0.1);
    transform: translateX(8px);
}

.usage-icon {
    width: 40px;
    height: 40px;
    background: rgba(226, 220, 74, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.usage-tab.active .usage-icon {
    background: rgba(226, 220, 74, 0.2);
}

.usage-icon svg {
    width: 20px;
    height: 20px;
    color: #E2DC4A;
}

.usage-tab span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
}

.usage-tab.active span {
    color: #fff;
    font-weight: 500;
}

/* Usage Detail Panel */
.usage-detail {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    min-height: 300px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.usage-panel {
    display: none;
    animation: panelFadeIn 0.4s ease;
    flex: 1;
    flex-direction: column;
}

/* JS ile active olunca display: block oluyor, bunu override etmemiz gerekebilir veya yapıyı koruyalım */
.usage-panel.active {
    display: flex;
    height: 100%;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.usage-panel h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(226, 220, 74, 0.3);
}

.usage-panel p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.usage-panel p:last-of-type {
    margin-bottom: auto;
    /* İçeriği yukarı itekle */
    padding-bottom: 1.5rem;
}

.panel-image {
    margin-top: auto;
    margin-left: -2rem;
    margin-right: -2rem;
    margin-bottom: -2rem;
    border-radius: 0;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.panel-image:hover img {
    transform: scale(1.05);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .intro-section {
        grid-template-columns: 1fr;
    }

    .intro-image {
        aspect-ratio: 16 / 9;
    }

    .structure-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usage-section {
        grid-template-columns: 1fr;
    }

    .usage-image {
        aspect-ratio: 16 / 9;
        order: -1;
    }
}

@media (max-width: 768px) {
    .malzeme-main {
        padding: 3rem 1.5rem 4rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .structure-grid {
        grid-template-columns: 1fr;
    }

    .usage-section {
        padding: 2rem;
    }

    .property-card,
    .structure-card {
        padding: 1.5rem;
    }
}