/* =============================================
   ATROPHY Homepage - Frontend Styles
   5mc2.com inspired design
   ============================================= */

/* ----- Hero Section ----- */
.atrophy-hero {
    position: relative;
    width: 100%;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Full-width: break out of any parent container */
.atrophy-hero--full-width {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Hero Background Image */
.atrophy-hero__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Hero YouTube Video */
.atrophy-hero__video-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.atrophy-hero__video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100%;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    border: none;
}

.atrophy-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  /*  background: rgba(0, 0, 0, 0.3);*/
    pointer-events: none;
    z-index: 1;
}

.atrophy-hero__content {
    position: relative;
    z-index: 2;
    padding: 40px 20px;
    max-width: 800px;
}

.atrophy-hero__title {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 20px;
    color: inherit;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.atrophy-hero__subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 16px;
    color: inherit;
    opacity: 0.85;
}

.atrophy-hero__subheading {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 28px;
    color: inherit;
    opacity: 0.75;
    letter-spacing: 0.02em;
}

/* Text position: top */
.atrophy-hero--text-top {
    align-items: flex-start;
    justify-content: center;
}

.atrophy-hero--text-top .atrophy-hero__content {
    padding-top: 50px;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

/* Text position: bottom */
.atrophy-hero--text-bottom {
    align-items: flex-end;
    justify-content: center;
}

.atrophy-hero--text-bottom .atrophy-hero__content {
    padding-bottom: 50px;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

/* Text position: center (default — no changes needed) */
.atrophy-hero--text-center {
    align-items: center;
    justify-content: center;
}

.atrophy-hero__cta {
    display: inline-block;
    padding: 13px 44px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.04em;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    border: 1px solid;
}

.atrophy-hero__cta:hover {
    opacity: 0.85;
}

/* Hero variants */
.atrophy-hero.hero-fullscreen {
    min-height: 100vh;
}

.atrophy-hero.hero-short {
    min-height: 50vh;
}

.atrophy-hero.hero-dark .atrophy-hero__overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* ----- Section Base ----- */
.atrophy-section {
    padding: 60px 0;
}

.atrophy-section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.atrophy-section__header--center {
    justify-content: center;
    text-align: center;
}

.atrophy-section__title {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    color: #1c1c1c;
}

.atrophy-section__link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #1c1c1c;
    text-decoration: none;
    border-bottom: 1px solid #1c1c1c;
    padding-bottom: 2px;
    transition: opacity 0.2s ease;
}

.atrophy-section__link:hover {
    opacity: 0.6;
    color: #1c1c1c;
}

/* ----- Products Grid ----- */
.atrophy-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--desktop-columns, 4), 1fr);
    gap: 20px;
}

.atrophy-product-item {
    position: relative;
}

.atrophy-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.atrophy-product-image {
    position: relative;
    background: #f6f6f6;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.atrophy-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.atrophy-product-item:hover .atrophy-product-image img {
    transform: scale(1.03);
}

.atrophy-product-info {
    padding: 12px 0 0;
}

.atrophy-product-title {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 6px;
    color: #1c1c1c;
}

.atrophy-product-price {
    font-size: 13px;
    font-weight: 600;
    color: #1c1c1c;
}

.atrophy-product-price--old {
    text-decoration: line-through;
    color: #999;
    font-weight: 400;
    margin-right: 8px;
}

.atrophy-no-products {
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ----- View All Button ----- */
.atrophy-view-all {
    margin-top: 40px;
    display: flex;
}

.atrophy-view-all--left {
    justify-content: flex-start;
}

.atrophy-view-all--center {
    justify-content: center;
}

.atrophy-view-all--right {
    justify-content: flex-end;
}

.atrophy-view-all__link {
    display: inline-block;
    padding: 12px 40px;
    border: 1px solid #1c1c1c;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: #1c1c1c;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.atrophy-view-all__link:hover {
    background: #1c1c1c;
    color: #fff;
}

/* ----- Social Section ----- */
.atrophy-social-section {
    background: #fff;
}

/* ----- Instagram Feed (atrophy.pl style) ----- */
.atrophy-instagram-feed {
    max-width: 100%;
}

.atrophy-instagram-feed__header {
    text-align: center;
    margin-bottom: 30px;
}

.atrophy-instagram-feed__profile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1c1c1c;
    transition: opacity 0.2s ease;
}

.atrophy-instagram-feed__profile:hover {
    opacity: 0.7;
    color: #1c1c1c;
}

.atrophy-instagram-feed__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.atrophy-instagram-feed__icon svg {
    width: 28px;
    height: 28px;
}

.atrophy-instagram-feed__username {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.atrophy-instagram-feed__subtitles {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.atrophy-instagram-feed__subtitle {
    font-size: 12px;
    color: #666;
    letter-spacing: 0.02em;
}

/* Instagram Grid - NO GAPS like atrophy.pl */
.atrophy-instagram-feed__grid {
    display: grid;
    grid-template-columns: repeat(var(--ig-columns, 6), 1fr);
    gap: 0;
}

.atrophy-instagram-feed__post {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f0f0f0;
}

.atrophy-instagram-feed__post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* NO hover effect - disabled like atrophy.pl */
}

.atrophy-instagram-feed__placeholder {
    width: 100%;
    height: 100%;
    background: #e8e8e8;
}

.atrophy-instagram-feed__video-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
}

/* Instagram CTA Button */
.atrophy-instagram-feed__cta {
    text-align: center;
    margin-top: 30px;
}

.atrophy-instagram-feed__button {
    display: inline-block;
    padding: 14px 40px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: #1c1c1c;
    text-decoration: none;
    border: 1px solid #1c1c1c;
    transition: background 0.2s ease, color 0.2s ease;
}

.atrophy-instagram-feed__button:hover {
    background: #1c1c1c;
    color: #fff;
}

/* Legacy social block styles */
.atrophy-social-block {
    margin-bottom: 40px;
}

.atrophy-social-block:last-child {
    margin-bottom: 0;
}

.atrophy-social-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* Social error message */
.atrophy-social-error {
    text-align: center;
    padding: 30px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    margin-bottom: 30px;
}

.atrophy-social-error i {
    margin-right: 8px;
}

/* TikTok CTA button */
.atrophy-social-tiktok-cta {
    text-align: center;
    margin-top: 40px;
}

.atrophy-social-tiktok-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.atrophy-social-tiktok-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: #fff;
}

.atrophy-social-tiktok-button__username {
    opacity: 0.7;
    font-weight: 400;
}

/* ----- Text Section ----- */
.atrophy-text-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.atrophy-text-content p {
    margin-bottom: 1.5em;
}

.atrophy-text-content h3 {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 2em 0 1em;
}

/* ----- Cards Section ----- */
.atrophy-cards-section .atrophy-section__title,
.atrophy-cards-section__title {
    text-transform: none;
    font-size: 22px;
    font-weight: 700;
}

.atrophy-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--cards-desktop-columns, 3), 1fr);
    gap: 20px;
}

.atrophy-card-item {
    background: #fff;
    border: 1px solid #e0ddd8;
    padding: 32px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.atrophy-card-item__image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    min-height: 140px;
}

.atrophy-card-item__image img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.atrophy-card-item__body {
    margin-top: auto;
    width: 100%;
}

.atrophy-card-item__text {
    font-size: 14px;
    font-weight: 400;
    color: #1c1c1c;
    line-height: 1.4;
    margin: 0;
}

.atrophy-card-item__description {
    font-size: 13px;
    color: #666;
    line-height: 1.55;
    margin-top: 10px;
}

/* ----- Reviews Section ----- */
.atrophy-reviews-section .atrophy-section__title,
.atrophy-reviews-section__title {
    text-transform: none;
    font-size: 22px;
    font-weight: 700;
}

.atrophy-reviews-see-more {
    text-transform: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
}

.atrophy-reviews-grid {
    display: grid;
    grid-template-columns: repeat(var(--reviews-desktop-columns, 3), 1fr);
    gap: 20px;
}

.atrophy-review-item {
    background: #fff;
    border: 1px solid #e0ddd8;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.atrophy-review-item__text {
    font-size: 14px;
    color: #333;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}

.atrophy-review-item__footer {
    border-top: 1px solid #f0ede8;
    padding-top: 14px;
}

.atrophy-review-item__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
}

.atrophy-review-item__date {
    color: #888;
}

.atrophy-review-item__author {
    font-weight: 700;
    color: #1c1c1c;
    font-size: 13px;
}

.atrophy-review-item__rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.atrophy-review-item__stars {
    display: flex;
    gap: 1px;
}

.atrophy-review-star {
    font-size: 24px;
    color: #e0ddd8;
    line-height: 1;
}

.atrophy-review-star--filled {
    color: var(--star-color, #8c1c13);
}

.atrophy-review-item__score {
    font-size: 14px;
    font-weight: 700;
    color: var(--star-color, #8c1c13);
    margin-left: 2px;
}

/* ----- Responsive ----- */
@media (max-width: 991px) {
    .atrophy-hero__title {
        font-size: 36px;
    }

    .atrophy-section {
        padding: 50px 0;
    }

    .atrophy-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .atrophy-instagram-feed__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 767px) {
    .atrophy-hero__title {
        font-size: 28px;
    }

    .atrophy-hero__cta {
        padding: 12px 32px;
        font-size: 11px;
    }

    .atrophy-section {
        padding: 40px 0;
    }

    .atrophy-section__header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .atrophy-products-grid {
        grid-template-columns: repeat(var(--mobile-columns, 2), 1fr);
        gap: 12px;
    }

    .atrophy-product-title {
        font-size: 11px;
    }

    .atrophy-product-price {
        font-size: 12px;
    }

    .atrophy-view-all {
        margin-top: 30px;
        justify-content: center;
    }

    .atrophy-view-all__link {
        padding: 10px 32px;
        font-size: 11px;
    }

    /* Instagram feed mobile */
    .atrophy-instagram-feed__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .atrophy-instagram-feed__header {
        margin-bottom: 20px;
    }

    .atrophy-instagram-feed__username {
        font-size: 16px;
    }

    .atrophy-instagram-feed__cta {
        margin-top: 20px;
    }

    .atrophy-instagram-feed__button {
        padding: 12px 30px;
        font-size: 12px;
    }

    .atrophy-social-tiktok-cta {
        margin-top: 24px;
    }

    .atrophy-social-tiktok-button {
        padding: 14px 24px;
        font-size: 12px;
    }

    .atrophy-cards-grid {
        grid-template-columns: repeat(var(--cards-mobile-columns, 1), 1fr);
        gap: 12px;
    }

    .atrophy-card-item {
        padding: 24px 16px 20px;
    }

    .atrophy-card-item__image {
        min-height: 100px;
    }

    .atrophy-reviews-grid {
        grid-template-columns: repeat(var(--reviews-mobile-columns, 1), 1fr);
        gap: 12px;
    }
}
