/* =========================================================
   SMM portfolio page (portfolio/smm-portfolio.php)
   Built from Figma "RYH portfolio 2.0" → frame "SMM & AD Portfolio" (5:34)
   Desktop reference width: 1440px
   ========================================================= */

body.smm-page {
    background-color: var(--color-bg-dark, #0a0b0e) !important;
    background-image: 
        radial-gradient(ellipse at 50% 0%, rgba(35, 39, 52, 0.5) 0%, rgba(10, 11, 14, 0.88) 75%),
        url('../../../assets/dark-bg-tile.jpg') !important;
    background-repeat: repeat !important;
    background-attachment: fixed !important;
    background-size: 750px !important;
    color: #fff;
}

.smm-main {
    position: relative;
    overflow: hidden;
    padding: 0 16px 80px;
}

/* Soft yellow glows behind the hero and first clients */
.smm-glow {
    position: absolute;
    width: 1050px;
    height: 460px;
    border-radius: 50%;
    background: #f6ff00;
    opacity: 0.12;
    filter: blur(180px);
    pointer-events: none;
    mix-blend-mode: screen;
}

.smm-glow--1 { left: calc(50% - 1114px); top: 438px; }
.smm-glow--2 { left: calc(50% - 707px); top: 1219px; }

/* ---------- HERO ---------- */
.smm-hero {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 114px;
    height: 520px;
    text-align: center;
}

.smm-hero__object {
    position: absolute;
    top: 84px;
    left: calc(50% + 572px);
    width: 401px;
    height: 401px;
    object-fit: contain;
    filter: blur(10px);
    pointer-events: none;
}

.smm-hero__logo {
    display: block;
    width: 149px;
    height: auto;
    margin: 0 auto;
}

.smm-hero__title {
    position: relative;
    margin: 0;
    padding: 0;
}

.smm-hero__title-main {
    display: block;
    margin-top: -6px;
    font-family: 'Funnel Display', 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 125.3px;
    line-height: 1.25;
    letter-spacing: -4.28px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #d1fc0d;
    text-shadow: 5.3px 5.3px 26.4px rgba(209, 252, 13, 0.25), -5.3px -5.3px 27.7px rgba(209, 252, 13, 0.25);
}

.smm-hero__title-script {
    display: block;
    width: 536px;
    height: auto;
    margin: -62px auto 0;
    transform: translateX(38px);
}

/* ---------- CLIENT BLOCKS ---------- */
.smm-clients {
    position: relative;
    max-width: 1291px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.smm-client {
    display: grid;
    grid-template-columns: 365px minmax(0, 1fr);
    align-items: start;
}

.smm-client__phone {
    position: relative;
    z-index: 1;
    grid-row: 1 / span 2;
    width: 100%;
    height: auto;
}

/* Dark info strip that starts behind the phone */
.smm-client__bar {
    display: flex;
    align-items: center;
    gap: 24px 108px;
    min-height: 82px;
    margin: 117px 0 0 -72px;
    padding: 18px 24px 18px 188px;
    background: linear-gradient(90deg, #111 47.3%, #030300 96.9%);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.smm-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.smm-meta--client { min-width: 177px; max-width: 260px; }

.smm-meta dt {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.15;
    color: #d8d8d8;
}

.smm-meta dd {
    margin: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    color: #fff;
}

.smm-meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 17.65px;
    line-height: 1.2;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    word-break: break-all;
}

.smm-meta a:hover {
    color: #d1fc0d;
}

.smm-meta__icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.smm-meta__icon img {
    width: 9px;
    height: 9px;
}

/* 3 x 2 posts; banner posts ("wide") take half a row */
.smm-client__posts {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
    width: 727.2px;
    margin: 75.8px 0 0 58px;
}

.smm-post {
    grid-column: span 2;
    margin: 0;
    overflow: hidden;
    background: #111;
}

.smm-post--wide {
    grid-column: span 3;
}

.smm-post img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.smm-post--wide img {
    aspect-ratio: 356 / 232.4;
}

.smm-post:hover img {
    transform: scale(1.04);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1320px) {
    .smm-client { grid-template-columns: 300px minmax(0, 1fr); }
    .smm-client__bar { margin-top: 90px; padding-left: 140px; gap: 20px 56px; }
    .smm-client__posts { width: auto; margin: 48px 0 0 40px; }
    .smm-hero__object { left: auto; right: -260px; }
}

@media (max-width: 1100px) {
    .smm-hero { height: auto; padding: 80px 0 72px; }
    .smm-hero__title-main { font-size: clamp(48px, 10.4vw, 110px); letter-spacing: -0.034em; }
    .smm-hero__title-script { width: clamp(220px, 44vw, 470px); margin-top: -6.5vw; }
    .smm-hero__object { display: none; }

    .smm-client { grid-template-columns: 240px minmax(0, 1fr); }
    .smm-client__bar { margin-top: 40px; padding-left: 104px; gap: 16px 32px; flex-wrap: wrap; }
    .smm-client__posts { margin: 32px 0 0 28px; gap: 10px; }
}

/* Tablet: info strip on top, phone + posts side by side */
@media (max-width: 991.98px) {
    .smm-clients { gap: 56px; }

    .smm-client {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px 24px;
    }

    .smm-client__bar {
        grid-column: 1 / -1;
        order: -1;
        margin: 0;
        padding: 16px 20px;
        gap: 14px 40px;
        border-radius: 12px;
        background: linear-gradient(90deg, #151515 0%, #050500 100%);
    }

    .smm-meta--client { max-width: none; }

    .smm-client__phone { grid-row: auto; }

    .smm-client__posts {
        margin: 0;
        gap: 8px;
    }
}

/* Phone: single column – info, phone mockup, then posts two per row */
@media (max-width: 575.98px) {
    .smm-main { padding-bottom: 56px; }
    .smm-glow { width: 700px; height: 320px; filter: blur(120px); }
    .smm-glow--1 { left: -420px; top: 360px; }
    .smm-glow--2 { left: -160px; top: 1100px; }

    .smm-hero { padding: 48px 0; }
    .smm-hero__logo { width: 112px; }
    .smm-hero__title-script { transform: translateX(4vw); }

    .smm-client { grid-template-columns: minmax(0, 1fr); }

    .smm-client__bar { padding: 16px 18px; gap: 16px 28px; }
    .smm-meta--client { min-width: 0; flex-basis: 100%; }
    .smm-meta a { font-size: 15px; }

    .smm-client__phone {
        width: min(240px, 70%);
        justify-self: center;
    }

    .smm-post { grid-column: span 3; }
    .smm-post--wide { grid-column: span 6; }
}
