/* All UA Brands Page - Mobile-First Responsive Design */

/* Base styles for all screen sizes */
.page-all-ua-brands {
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.page-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    opacity: 0.1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.page-background[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
}

.page-background:not([style*="background-image"]) {
    background-color: #f0f0f0;
}

.container {
    position: relative;
    z-index: 3;
    padding: 40px 20px 60px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

/* Page Title Styles */
.page-title {
    margin: 0;
    padding: 0;
    position: relative;
    display: inline-block;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.title-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background-color: #000;
}

/* Cards Grid - Mobile First */
.cards-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    justify-content: center;
    max-width: 100%;
}

/* Individual Card Styles */
.card {
    width: 100%;
    max-width: 350px;
    height: auto;
    min-height: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 25px 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0 auto;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* Card Logo */
.card-logo {
    margin-bottom: 20px;
    text-align: center;
}

.card-logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* Card Title */
.card-title {
    font-family: Inter, system-ui, Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.2;
    text-align: left;
}

/* Card Description */
.card-description {
    font-family: Inter, system-ui, Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

/* Empty State Message */
.no-cards-message {
    margin-top: 40px;
    text-align: center;
    color: #666;
    padding: 20px;
}

.no-cards-message p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 50px 40px 70px;
    }
    
    .page-title {
        font-size: 36px;
    }
    
    .cards-grid {
        margin-top: 50px;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .card {
        max-width: 380px;
        min-height: 420px;
        padding: 30px 25px;
    }
    
    .card-logo img {
        width: 140px;
        height: 140px;
    }
    
    .card-title {
        font-size: 30px;
        margin-bottom: 18px;
    }
    
    .card-description {
        font-size: 20px;
    }
}

/* Desktop Styles (1024px and up) */
@media (min-width: 1024px) {
    .container {
        padding: 60px 40px 80px;
        max-width: 1400px;
    }
    
    .page-title {
        font-size: 40px;
    }
    
    .cards-grid {
        margin-top: 60px;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        justify-items: center;
    }
    
    .card {
        width: 100%;
        max-width: 380px;
        height: 485px;
        padding: 30px;
    }
    
    .card-logo img {
        width: 152px;
        height: 152px;
    }
    
    .card-title {
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .card-description {
        font-size: 24px;
    }
}

/* Large Desktop Styles (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }
    
    .cards-grid {
        max-width: 1400px;
        gap: 40px;
    }
    
    .card {
        max-width: 420px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .card {
        transition: none;
    }
    
    .card:active {
        transform: scale(0.98);
    }
}

/* High DPI Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-logo img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
