/* ============================================
   LOOMS by Nowshin — Styling Ideas Page
   ============================================ */

/* ============================================
   Hero Section
   ============================================ */
.styling-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.styling-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--looms-sage) 0%, var(--looms-deep-sage) 100%);
    background-size: cover;
    background-position: center;
}

.styling-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(107, 125, 102, 0.9), rgba(139, 157, 134, 0.85));
}

.styling-hero-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--looms-gold);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    color: var(--looms-white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto;
}

/* ============================================
   Quick Styling Tips
   ============================================ */
.styling-tips {
    padding: 5rem 0;
    background: var(--looms-cream);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--looms-charcoal);
    margin-bottom: 0.5rem;
}

.section-text {
    font-size: 1rem;
    color: var(--looms-slate);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.tip-card {
    background: var(--looms-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--looms-taupe);
    transition: all 0.4s ease;
    cursor: default;
}

.tip-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--looms-sage);
}

.tip-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--looms-taupe);
    line-height: 1;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.tip-card:hover .tip-number {
    color: var(--looms-sage);
}

.tip-content {
    position: relative;
    z-index: 1;
}

.tip-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--looms-charcoal);
    margin-bottom: 0.75rem;
}

.tip-text {
    font-size: 0.9rem;
    color: var(--looms-graphite);
    line-height: 1.65;
    margin: 0;
}

.tip-icon {
    position: absolute;
    bottom: -15px;
    right: -10px;
    font-size: 5rem;
    color: var(--looms-pearl);
    transition: all 0.4s ease;
    z-index: 0;
}

.tip-card:hover .tip-icon {
    color: rgba(139, 157, 134, 0.15);
    transform: scale(1.1) rotate(-5deg);
}

/* ============================================
   Room Inspiration Gallery
   ============================================ */
.room-inspiration {
    padding: 5rem 0;
    background: var(--looms-white);
}

.room-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--looms-taupe);
    background: transparent;
    color: var(--looms-graphite);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--looms-sage);
    color: var(--looms-sage);
}

.filter-btn.active {
    background: var(--looms-sage);
    border-color: var(--looms-sage);
    color: var(--looms-white);
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Room Card */
.room-card {
    background: var(--looms-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--looms-taupe);
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--looms-sage-light);
}

.room-card.hidden {
    display: none;
}

.room-card.fade-out {
    opacity: 0;
    transform: translateY(20px);
}

.room-image-wrapper {
    position: relative;
    overflow: hidden;
}

/* Room Image Slider */
.room-slider {
    position: relative;
}

.room-image {
    height: 280px;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.room-card:hover .room-image {
    transform: scale(1.08);
}

.room-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(44, 44, 44, 0.8) 0%, rgba(44, 44, 44, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.room-card:hover .room-overlay {
    opacity: 1;
}

.room-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--looms-white);
    color: var(--looms-charcoal);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.1s;
}

.room-card:hover .room-tag {
    opacity: 1;
    transform: translateY(0);
}

.room-overlay .btn {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.15s;
}

.room-card:hover .room-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}

/* Room Details */
.room-details {
    padding: 1.5rem;
}

.room-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--looms-charcoal);
    margin-bottom: 0.5rem;
}

.room-desc {
    font-size: 0.9rem;
    color: var(--looms-slate);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Product Links */
.room-products {
    border-top: 1px solid var(--looms-taupe);
    padding-top: 1rem;
}

.products-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--looms-slate);
    display: block;
    margin-bottom: 0.75rem;
}

.product-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    background: var(--looms-pearl);
    transition: all 0.3s ease;
    text-decoration: none;
}

.product-link:hover {
    background: var(--looms-sage);
    transform: translateX(5px);
}

.product-link:hover .product-name,
.product-link:hover .product-price,
.product-link:hover .product-icon {
    color: var(--looms-white);
}

.product-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--looms-white);
    border-radius: var(--radius-sm);
    color: var(--looms-sage);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.product-link:hover .product-icon {
    background: rgba(255, 255, 255, 0.2);
}

.product-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--looms-charcoal);
    transition: color 0.3s ease;
}

.product-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--looms-sage);
    transition: color 0.3s ease;
}

/* ============================================
   Instagram Marquee Section - Cinema Style
   ============================================ */
.instagram-section {
    padding: 5rem 0;
    background: var(--looms-cream);
    overflow: hidden;
}

.marquee-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.marquee-track {
    display: flex;
    overflow: hidden;
    user-select: none;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: flex;
    gap: 1rem;
    will-change: transform;
}

/* Left-scrolling row - smooth cinema style */
.marquee-track[data-direction="left"] .marquee-content {
    animation: marqueeLeft 60s linear infinite;
}

/* Right-scrolling row - smooth cinema style */
.marquee-track[data-direction="right"] .marquee-content {
    animation: marqueeRight 60s linear infinite;
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 1rem));
    }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(calc(-100% - 1rem));
    }
    100% {
        transform: translateX(0);
    }
}

/* Slow down on hover for better interaction */
.marquee-track:hover .marquee-content {
    animation-play-state: paused;
}

/* Instagram Item */
.insta-item {
    position: relative;
    width: 220px;
    height: 220px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
}

.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insta-item:hover img {
    transform: scale(1.1);
}

.insta-hover {
    position: absolute;
    inset: 0;
    background: rgba(139, 157, 134, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insta-item:hover .insta-hover {
    opacity: 1;
}

.insta-hover i {
    font-size: 2.5rem;
    color: var(--looms-white);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.insta-item:hover .insta-hover i {
    transform: scale(1);
}

/* ============================================
   Styling CTA Section
   ============================================ */
.styling-cta {
    padding: 5rem 0;
    background: var(--looms-cream);
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 450px;
    box-shadow: var(--shadow-xl);
}

.cta-content {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #8B9D86;
    background: linear-gradient(135deg, #8B9D86 0%, #6B7D66 100%);
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.cta-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.cta-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.cta-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.95);
}

.cta-feature i {
    color: #C9B79C;
    font-size: 1rem;
}

.cta-content .btn-looms {
    background: #ffffff;
    color: #8B9D86;
    border-color: #ffffff;
    width: fit-content;
    padding: 0.85rem 2rem;
    font-weight: 600;
}

.cta-content .btn-looms:hover {
    background: #FAF8F5;
    border-color: #FAF8F5;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.cta-image {
    position: relative;
    overflow: hidden;
    min-height: 450px;
    background: #E8E3DC;
}

.cta-image-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #E8E3DC;
    transition: transform 0.6s ease;
}

.cta-wrapper:hover .cta-image-inner {
    transform: scale(1.05);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 1199.98px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .insta-item {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 991.98px) {
    .styling-hero {
        min-height: 350px;
    }

    .styling-tips,
    .room-inspiration,
    .instagram-section,
    .styling-cta {
        padding: 4rem 0;
    }

    .cta-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cta-content {
        padding: 2.5rem;
    }

    .cta-image {
        min-height: 350px;
        order: -1;
    }

    .cta-image-inner {
        position: absolute;
    }
}

@media (max-width: 767.98px) {
    .styling-hero {
        min-height: 300px;
    }

    .styling-hero-content {
        padding: 3rem 0;
    }

    .tips-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tip-card {
        padding: 1.5rem;
    }

    .tip-number {
        font-size: 2.5rem;
    }

    .tip-icon {
        font-size: 4rem;
    }

    .room-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .room-image {
        height: 240px;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .insta-item {
        width: 150px;
        height: 150px;
    }

    .marquee-track[data-direction="left"] .marquee-content,
    .marquee-track[data-direction="right"] .marquee-content {
        animation-duration: 40s;
    }

    .cta-content {
        padding: 2rem;
    }

    .cta-features {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 575.98px) {
    .insta-item {
        width: 130px;
        height: 130px;
    }

    .marquee-content {
        gap: 0.75rem;
    }

    .product-link {
        padding: 0.35rem;
    }

    .product-thumb {
        width: 40px;
        height: 40px;
    }
}