/* Reseller Portal Styles
--------------------------------------------- */

/* Reseller Login/Password Page */
.reseller-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}


.reseller-login__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #25242B;
    z-index: 1;
}

.reseller-login__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
}

.reseller-login__box {
    background: #F6F5FB;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
}

.reseller-login__title {
    font-family: "URW DIN Cond", sans-serif;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    color: #25242B;
    margin-bottom: 15px;
    margin-top: 0;
}

.reseller-login__subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* WordPress Password Form Styling */
.reseller-login .post-password-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reseller-login .post-password-form p {
    margin: 0;
}

.reseller-login .post-password-form label {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #25242B;
    text-align: left;
}

.reseller-login .post-password-form input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    border: 1px solid #25242B;
    border-radius: 8px;
    background: #fff;
    color: #25242B;
}

.reseller-login .post-password-form input[type="password"]:focus {
    outline: none;
}

.reseller-login .post-password-form input[type="submit"] {
    width: 100%;
    padding: 15px 30px;
    font-family: "URW DIN Cond", sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: #25242B;
    background: linear-gradient(92.29deg, #FFE100 0%, #FE9700 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
}


/* Reseller Header - Desktop nav (hidden on mobile) */
.header--reseller .reseller-nav {
    display: none;
    align-items: center;
    gap: 30px;
}

@media (min-width: 1200px) {
    .header--reseller .reseller-nav {
        display: flex;
    }
}

.header--reseller .reseller-nav__link {
    font-family: "URW DIN Cond", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #F6F5FB;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header--reseller .reseller-nav__link:hover {
    color: #FFE100;
}

/* Reseller Header - Mobile nav uses main site structure */
.header--reseller .header__nav__container {
    display: none;
}

@media (min-width: 1200px) {
    .header--reseller .header__nav__container {
        display: none !important;
    }
}

.header--reseller.menu-open .header__nav__container {
    display: block;
}

/* Header right icons - mobile/desktop visibility */
.header--reseller .header__search--desktop {
    display: none;
}

.header--reseller .header__contact--mobile {
    display: inline-block;
}

@media (min-width: 1200px) {
    .header--reseller .header__search--desktop {
        display: inline-block;
    }

    .header--reseller .header__contact--mobile {
        display: none;
    }
}

/* Reseller Hero - extends hero--search */
.hero--reseller {
    position: relative;
    padding-bottom: 0;
    background: #25242B;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .hero--reseller {
        padding-bottom: 0;
        height: 670px;
    }

    .hero--reseller.hero--search .hero--search__inner {
        flex-direction: column;
    }
}

.hero--reseller .hero__bg {
    width: 100%;
}

.hero--resellers__row {
    display: flex; 
    flex-direction: column;
    height: 100%; 
    align-items: center;
}

@media (min-width: 768px) {
    .hero--resellers__row {
        flex-direction: row;
    }
}

.hero--reseller .hero--search__inner .hero--search__right .hero--search__contents {
    max-width: initial;
    padding: 0;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .hero--reseller .hero--search__inner .hero--search__right .hero--search__contents {
        margin-bottom: 0;
    }
}

/* Yellow gradient modifier for sub-heading */
.hero__sub-heading--yellow {
    background: linear-gradient(92.29deg, #FFE100 0%, #FE9700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero--reseller .hero--search__inner .hero--search__right .search {
    margin-top: 30px;
}

.hero--reseller .hero--search__inner .hero--search__right .hero__copy  {
    color: #F6F5FB;
}
.hero--reseller .hero--search__inner .hero--search__right .hero__sub-heading {
    color: #F6F5FB;
}
.hero--reseller .hero--search__inner .hero--search__right .hero__sub-heading.text-small {
    font-size: 26px;
}

@media (min-width: 768px) {
    .hero--reseller .hero--search__inner .hero--search__right .hero__sub-heading.text-small {
        font-size: 36px;
    }
}

/* Reseller Tabs - Mobile: horizontal row of pills on dark bg */
.reseller-tabs {
    width: 100%;
    padding-bottom: 30px;
}
.reseller-tabs .container {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Desktop: Floating inside hero */
@media (min-width: 768px) {
    .reseller-tabs {
        gap: 40px;
        padding-bottom: 50px;
    }
}

.reseller-tabs__tab {
    display: inline-block;
    width: 100%;
    font-family: "URW DIN Cond", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    text-decoration: none;
    text-align: center;
    border: 2px solid #615F70;
    border-radius: 100px;
    background: transparent;
    color: #F6F5FB;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Desktop: Larger pill buttons */
@media (min-width: 768px) {
    .reseller-tabs__tab {
        padding: 10px 40px;
        font-size: 26px;
        border: 2px solid #F6F5FB;
        border-radius: 100px;
        background: transparent;
        color: #F6F5FB;
    }
}

.reseller-tabs__tab:hover {
    background: #F6F5FB;
    color: #F6F5FB;
    color: #25242B;
}

.reseller-tabs__tab--active {
    background: #F6F5FB;
    border-color: #F6F5FB;
    color: #25242B;
}

/* Reseller Sections */
.reseller-section {
    padding: 30px 0;
}

@media (min-width: 768px) {
    .reseller-section {
        padding: 40px 0;
    }
}

.reseller-section--light {
    background: #F6F5FB;
}

.reseller-section--dark {
    background: #25242B;
}

.reseller-section__header {
    text-align: center;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .reseller-section__header {
        margin-bottom: 60px;
    }
}

.reseller-section__title {
    font-family: "URW DIN Cond", sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #25242B;
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .reseller-section__title {
        font-size: 32px;
    }
}

.reseller-section--dark .reseller-section__title {
    color: #F6F5FB;
}

.reseller-section__subtitle {
    font-size: 14px;
    color: #615F70;
}

/* Resource Links */
.reseller-links__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .reseller-links__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .reseller-links__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reseller-links__category-title {
    font-family: "URW DIN Cond", sans-serif;
    font-size: 24px;
    line-height: 100%;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.reseller-links__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reseller-links__item {
    margin-bottom: 8px;
}

.reseller-links__item:last-child {
    margin-bottom: 0;
}

.reseller-links__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    line-height: 24px;
    color: #25242B;
    text-decoration: none;
    transition: color 0.2s ease;
}

.reseller-links__link::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Download file icon */
.reseller-links__link--download::before {
    background-image: url('/wp-content/themes/mrmoco/images/icon-download.svg');
}

/* External link icon */
.reseller-links__link--external::before {
    background-image: url('/wp-content/themes/mrmoco/images/icon-external.svg');
}

/* Product Categories Grid (for Datasheets section) */
.reseller-products__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .reseller-products__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reseller-products__category-title {
    font-family: "URW DIN Cond", sans-serif;
    font-size: 24px;
    line-height: 100%;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* Presentation Cards */
.reseller-cards__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .reseller-cards__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .reseller-cards__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reseller-cards__card {
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.reseller-cards__image-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.reseller-cards__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reseller-cards__content {

}

.reseller-cards__title {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

/* Brand Tabs (Marketing Page) */
.brand-tabs {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px;
    background: #25242B;
    border-radius: 100px;
    padding: 3px;
}
@media (min-width: 768px) {
    .brand-tabs {
        padding: 9px;
    }
}

.brand-tabs__tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    width: 100%;
    background: transparent;
    border: 3px solid #25242B;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

@media (min-width: 768px) {
    .brand-tabs__tab {
        min-width: 220px;
        padding: 20px 40px;
    }
}

.brand-tabs__tab img {
    max-height: 30px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

@media (min-width: 768px) {
    .brand-tabs__tab img {
        max-height: 40px;
    }
}

/* Active/hover state - full brightness */
.brand-tabs__tab:hover img,
.brand-tabs__tab--active img {
    opacity: 1;
}

.brand-tabs__tab:not(.brand-tabs__tab--active):hover,
.brand-tabs__tab:not(.brand-tabs__tab--active):focus {
    border-color: #25242B;
}

/* Slidekamera tab - green border */

.brand-tabs__tab--slidekamera.brand-tabs__tab--active {
    border-color: #8DC63F;
}

/* MRMC tab - yellow border */
.brand-tabs__tab--mrmc.brand-tabs__tab--active {
    border-color: #FFE100;
}

/* Branding Section */
.reseller-branding__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 768px) {
    .reseller-branding__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reseller-branding__column-title {
    font-family: "URW DIN Cond", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #615F70;
    margin-bottom: 20px;
}

/* Showreels Section */
.reseller-showreels__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .reseller-showreels__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .reseller-showreels__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.reseller-showreels__card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}

.reseller-showreels__card:hover .reseller-showreels__thumbnail {
    transform: scale(1.05);
}

.reseller-showreels__card:hover .reseller-showreels__play {
    transform: translate(-50%, -50%) scale(1.1);
}

.reseller-showreels__thumbnail-wrapper {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.reseller-showreels__thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.reseller-showreels__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 225, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.reseller-showreels__play::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #25242B;
    margin-left: 4px;
}

.reseller-showreels__title {
    padding: 15px;
    font-family: "URW DIN Cond", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #25242B;
    background: #F6F5FB;
}

/* Filterable Products (for JavaScript filtering) */
.reseller-filterable {
    display: none;
}

.reseller-filterable.is-visible {
    display: block;
}

.reseller-filterable[data-brand="all"] {
    display: block;
}
