/*
Theme Name: AffiliateCMS Child
Theme URI: https://lat.vn/
Description: Child theme for AffiliateCMS Theme. Add your custom styles and overrides here.
Author: AffiliateCMS Team
Author URI: https://lat.vn/
Template: affiliateCMS-theme
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: affiliatecms-child
*/

/* ==========================================================================
   Custom Styles - Add your overrides below
   ========================================================================== */

/* Brand color palette extracted from logo-3.png: blue #0055EB + amber
   #FEAE00, replacing the theme's default teal/coral tokens. */
:root {
    --color-primary: #0055EB;
    --color-primary-hover: #0046C4;
    --color-primary-dark: #003690;
    --color-primary-light: #E8EEFE;
    --color-primary-rgb: 0, 85, 235;

    --color-accent: #FEAE00;
    --color-accent-hover: #E09800;
    --color-accent-light: #FFF4DB;

    --shadow-primary: 0 4px 14px rgba(0, 85, 235, 0.2);
    --shadow-accent: 0 4px 14px rgba(254, 174, 0, 0.2);
}

[data-theme="dark"] {
    --color-primary: #4C8DFF;
    --color-primary-hover: #2F6FE0;
    --color-primary-dark: #1F56B8;
    --color-primary-light: rgba(76, 141, 255, 0.15);
    --color-primary-rgb: 76, 141, 255;

    --color-accent: #FFC233;
    --color-accent-hover: #FEAE00;
    --color-accent-light: rgba(255, 194, 51, 0.15);

    --shadow-primary: 0 4px 14px rgba(76, 141, 255, 0.25);
    --shadow-accent: 0 4px 14px rgba(255, 194, 51, 0.25);
}

/* Header logo: unify with footer logo (same bi-projector-fill badge) and
   give the "Best Projectors Today" wordmark enough room so it isn't
   clipped by the default 220px container. */
.header__logo {
    max-width: 360px;
}

.site-logo__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.site-logo__text {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: normal;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 480px) {
    .header__logo {
        max-width: 240px;
    }

    .site-logo__icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .site-logo__text {
        font-size: var(--text-lg);
    }
}

/* "Meet the Team" cards - used in the About Us page content. */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-6);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: transform var(--duration-200) var(--ease-out), box-shadow var(--duration-200) var(--ease-out), border-color var(--duration-200) var(--ease-out);
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.team-card__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    margin-bottom: var(--space-4);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.team-card__name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 var(--space-1);
}

.team-card__role {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 var(--space-3);
}

.team-card__bio {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin: 0 0 var(--space-4);
    flex: 1;
}

.team-card__link {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
}

.team-card__link:hover {
    text-decoration: underline;
}

/* wpautop sometimes wraps the trailing link in its own <p>; neutralize that
   wrapper's default margin so spacing stays consistent either way. */
.team-card > p:last-child {
    margin: 0;
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
