/* supplier_gallery.css - Orange and Light Blue Theme */
/* No border radius - sharp corners throughout */
/* Reduced font sizes for compact display */

:root {
    /* Orange Theme Colors */
    --primary-orange: #FF6B35;
    --primary-orange-dark: #E85A24;
    --primary-orange-light: #FF8C5A;
    --primary-orange-soft: #FFF4F0;
    
    /* Light Blue Theme Colors */
    --secondary-blue: #7CB9E8;
    --secondary-blue-dark: #5A9FD4;
    --secondary-blue-light: #B8D8FC;
    --secondary-blue-soft: #F0F7FF;
    
    /* Neutral Colors */
    --text-dark: #2C3E50;
    --text-gray: #5A6C7E;
    --text-light: #7F8C8D;
    --border-light: #E0E4E8;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    
    /* Status Colors */
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    --youtube: #FF0000;
    --vimeo: #1AB7EA;
    
    /* Font Sizes - Reduced */
    --font-xs: 11px;
    --font-sm: 12px;
    --font-md: 13px;
    --font-lg: 15px;
    --font-xl: 18px;
    --font-2xl: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    font-size: var(--font-md);
}

.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px;

    background: 
        linear-gradient(rgba(0, 0, 0, 0.712), rgba(0, 0, 0, 0.726)),
        url('../images/supplier2.png') no-repeat fixed center center/cover;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.animated-banner {
    position: relative;
    height:60vh;
    overflow: hidden;
    margin-bottom: 40px;

    background: 
        linear-gradient(rgba(0, 0, 0, 0.651), rgba(0, 0, 0, 0.61)),
        url('../images/supplier_trans.png') no-repeat center center/cover;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}



.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
}

.shape-1 {
    width: 350px;
    height: 350px;
    top: -120px;
    left: -120px;
    transform: rotate(45deg);
    animation: float1 22s infinite ease-in-out;
    background:rgba(255, 0, 0, 0.233);
}

.shape-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    right: 5%;
    transform: rotate(30deg);
    animation: float2 18s infinite ease-in-out;
    animation-delay: 2s;
    background: #1ab6ea49;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-2 h4 {
    text-align: center;
    font-size: var(--font-sm);
    color: white;
}

.shape-3 {
    width: 180px;
    height: 180px;
    top: 50%;
    right: -60px;
    transform: rotate(60deg);
    animation: float3 20s infinite ease-in-out;
    animation-delay: 5s;
    background: var(--youtube);
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 25%;
    left: 3%;
    transform: rotate(15deg);
    animation: float4 16s infinite ease-in-out;
    animation-delay: 1s;
    background: rgba(255,255,255,0.06);
}

.shape-5 {
    width: 140px;
    height: 140px;
    top: 20%;
    left: 15%;
    transform: rotate(75deg);
    animation: float1 24s infinite ease-in-out;
    animation-delay: 7s;
    background: rgba(255,255,255,0.04);
}

@keyframes float1 {
    0% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(40px, -40px) rotate(60deg); }
    100% { transform: translate(0, 0) rotate(45deg); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) rotate(30deg); }
    50% { transform: translate(-30px, 30px) rotate(15deg); }
    100% { transform: translate(0, 0) rotate(30deg); }
}

@keyframes float3 {
    0% { transform: translate(0, 0) rotate(60deg); }
    50% { transform: translate(-20px, -35px) rotate(45deg); }
    100% { transform: translate(0, 0) rotate(60deg); }
}

@keyframes float4 {
    0% { transform: translate(0, 0) rotate(15deg); }
    50% { transform: translate(25px, 20px) rotate(30deg); }
    100% { transform: translate(0, 0) rotate(15deg); }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    z-index: 2;
}

.banner-content {
    z-index: 1;
    max-width: 850px;
    padding: 20px;
    animation: fadeInUp 0.7s ease-out;
   
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(35px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-content h1 {
    font-size: 45px;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.banner-content h1 i {
    margin-right: 12px;
}

.banner-content p {
    font-size: var(--font-md);
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Search Box in Banner */
.search-box-banner {
    max-width: 520px;
    margin: 0 auto;
    display: none;
}

.search-box-banner .input-group {
    background: white;
    overflow: hidden;
    display: flex;
    border: 1px solid transparent;
}

.search-box-banner input {
    border: 1px solid var(--border-light);
    padding: 12px 18px;
    font-size: var(--font-sm);
    flex: 1;
    background: var(--bg-white);
    color: var(--text-dark);
}

.search-box-banner input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.search-box-banner button {
    background: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    padding: 0 28px;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
    font-weight: 500;
    font-size: var(--font-sm);
}

.search-box-banner button:hover {
    background: var(--primary-orange-dark);
    border-color: var(--primary-orange-dark);
}

.clear-search {
    display: inline-block;
    margin-top: 12px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: var(--font-xs);
}

.clear-search:hover {
    color: white;
    text-decoration: underline;
}

/* ========== SUPPLIER HEADER ========== */
.supplier-header {
    background: 
        linear-gradient(rgba(0, 0, 0, 0.623), rgba(0, 0, 0, 0.623)),
        url('../images/1000_F_1750038896_ukc26HLpGVUFV2vUoE0iCICjifd4MmcI.jpg') no-repeat fixed center center/cover;
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}
.supplier-header h1 {
    font-size: var(--font-xl);
    margin-bottom: 10px;
    font-weight: 600;
}

.supplier-header p {
    font-size: var(--font-sm);
    opacity: 0.9;
}

/* Supplier Header with Logo (Detailed View) */
.supplier-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.supplier-header-logo {
    width: 100px;
    height: 100px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--border-light);
}

.supplier-header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.supplier-header-logo i {
    font-size: 48px;
    color: var(--primary-orange);
}

.supplier-header-info h1 {
    font-size: var(--font-xl);
    margin-bottom: 8px;
}

.supplier-header-info p {
    font-size: var(--font-sm);
    margin-bottom: 5px;
}

.supplier-header-info .supplier-contact {
    font-size: var(--font-xs);
    margin-top: 8px;
}

.supplier-header-info .supplier-contact i {
    margin-right: 6px;
}

/* ========== SUPPLIER CARDS ========== */
.supplier-card {
    background: var(--bg-white);
   
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
   
}

.supplier-card:hover {
    border-color: var(--primary-orange);
    background: var(--primary-orange-soft);
}

.supplier-logo-container {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.supplier-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.supplier-logo-icon {
    font-size: 32px;
    color: orange;
    border-radius: 50%;
}

.supplier-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border: 1px solid var(--primary-orange);
}

.supplier-icon i {
    font-size: 28px;
    color: white;
}

.supplier-name {
    font-weight: 600;
    font-size: var(--font-md);
    margin-bottom: 6px;
    color: orange;
}

.supplier-address {
    font-size: var(--font-xs);
    color:orange;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.media-count {
    font-size: var(--font-xs);
    color: orange;
    margin-top: 8px;
}

/* ========== MEDIA CARDS ========== */
.media-card {
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all 0.25s ease;
    margin-bottom: 25px;
    background: var(--bg-white);
    cursor: pointer;
    animation: cardFadeIn 0.5s ease forwards;
    opacity: 0;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation delay */
.media-card:nth-child(1) { animation-delay: 0.05s; }
.media-card:nth-child(2) { animation-delay: 0.10s; }
.media-card:nth-child(3) { animation-delay: 0.15s; }
.media-card:nth-child(4) { animation-delay: 0.20s; }
.media-card:nth-child(5) { animation-delay: 0.25s; }
.media-card:nth-child(6) { animation-delay: 0.30s; }
.media-card:nth-child(7) { animation-delay: 0.35s; }
.media-card:nth-child(8) { animation-delay: 0.40s; }

.media-card:hover {
    border-color: var(--primary-orange);
}

.media-preview {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.media-card:hover .media-preview img {
    transform: scale(1.04);
}

.media-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
 
}

.media-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 40px;
    color: white;
}

/* Media Badges */
.media-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: var(--font-xs);
    font-weight: 600;
    letter-spacing: 0.5px;
    z-index: 1;
}

.media-badge.image { background: var(--success); color: white; }
.media-badge.video { background: var(--info); color: white; }
.media-badge.youtube { background: var(--youtube); color: white; }
.media-badge.vimeo { background: var(--vimeo); color: white; }

.featured-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--warning);
    color: var(--text-dark);
    padding: 4px 10px;
    font-size: var(--font-xs);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Media Info */
.media-info {
    padding: 12px;
}

.media-title {
    font-size: var(--font-md);
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
    line-height: 1.4;
}

.media-description {
    font-size: var(--font-xs);
    color: var(--text-gray);
    margin-bottom: 8px;
    line-height: 1.45;
}

.media-stats {
    display: flex;
    gap: 12px;
    font-size: var(--font-xs);
    color: var(--text-light);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

.media-stats i {
    margin-right: 3px;
}

.media-stats .views {
    color: var(--primary-orange);
    font-weight: 500;
}

/* ========== FILTER BAR ========== */
.filter-bar {
    background:transparent;
    border: 1px solid var(--border-light);
    padding: 15px 20px;
    margin-bottom: 25px;
    
}

.filter-btn {
    margin: 3px 5px;
    padding: 6px 16px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    font-size: var(--font-xs);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-gray);
    font-weight: 500;
    cursor: pointer;
}

.filter-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.filter-btn.btn-primary {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    color: white;
}

.filter-btn.btn-primary:hover {
    background: var(--primary-orange-dark);
    border-color: var(--primary-orange-dark);
}

/* ========== SEARCH BAR ========== */
.search-bar {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    padding: 15px 20px;
    display: none;
    margin-bottom: 20px;
}

.search-input-group {
    display: flex;
    gap: 10px;
}

.search-input-group input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-light);
    font-size: var(--font-sm);
    background: var(--bg-white);
    color: var(--text-dark);
}

.search-input-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.search-input-group button {
    padding: 10px 24px;
    background: var(--primary-orange);
    color: white;
    border: 1px solid var(--primary-orange);
    cursor: pointer;
    font-size: var(--font-sm);
    font-weight: 500;
    transition: background 0.2s ease;
}

.search-input-group button:hover {
    background: var(--primary-orange-dark);
    border-color: var(--primary-orange-dark);
}

/* Search Results Count */
.search-results-count {
    padding: 10px 15px;
    background: var(--secondary-blue-soft);
    border: 1px solid var(--border-light);
    margin-bottom: 20px;
    font-size: var(--font-xs);
}

/* ========== BUTTONS ========== */
.btn-outline-secondary {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-gray);
    padding: 8px 24px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    font-size: var(--font-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-outline-secondary:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.btn-primary {
    background: var(--primary-orange);
    border: 1px solid var(--primary-orange);
    color: white;
    padding: 8px 24px;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    font-size: var(--font-sm);
    transition: background 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-orange-dark);
    border-color: var(--primary-orange-dark);
}

/* ========== MODAL STYLES ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    overflow: auto;
}

.modal-content {
    background: var(--bg-white);
    margin: 50px auto;
    width: 90%;
    max-width: 900px;
    border: 1px solid var(--border-light);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--secondary-blue-soft);
}

.modal-header h3 {
    font-size: var(--font-lg);
    margin: 0;
}

.modal-header button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-gray);
}

.modal-header button:hover {
    color: var(--danger);
}

.modal-media-container {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.modal-media-container img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
}

.modal-media-container video {
    width: 100%;
    max-height: 60vh;
}

.modal-media-container iframe {
    width: 100%;
    height: 480px;
    border: none;
}

.modal-media-info {
    padding: 18px;
}

/* ========== LIGHTBOX ========== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    z-index: 9999;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: 300;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

/* ========== GRID LAYOUT ========== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.col-md-4, .col-lg-3 {
    padding: 0 12px;
}

/* ========== SECTION HEADERS ========== */
h3 {
    font-size: var(--font-lg);
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

/* ========== UTILITY CLASSES ========== */
.text-center {
    text-align: center;
}

.py-5 {
    padding-top: 40px;
    padding-bottom: 40px;
}

.mb-3 {
    margin-bottom: 12px;
}

.mb-4 {
    margin-bottom: 20px;
}

.mb-5 {
    margin-bottom: 40px;
}

.mt-4 {
    margin-top: 20px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
    .animated-banner {
        height: 380px;
    }
    
    .banner-content h1 {
        font-size: var(--font-xl);
    }
}

@media (max-width: 768px) {
    .animated-banner {
        height: 340px;
        margin-bottom: 25px;
    }
    
    .banner-content h1 {
        font-size: var(--font-lg);
    }
    
    .banner-content p {
        font-size: var(--font-sm);
        margin-bottom: 1.2rem;
    }
    
    .supplier-header {
        padding: 30px 0;
        margin-bottom: 25px;
    }
    
    .supplier-header h1 {
        font-size: var(--font-lg);
    }
    
    .supplier-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .supplier-header-logo {
        width: 80px;
        height: 80px;
    }
    
    .filter-bar .row {
        text-align: center;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .search-input-group button {
        width: 100%;
    }
    
    .media-preview {
        height: 200px;
    }
    
    .col-md-4, .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .animated-banner {
        height: 300px;
    }
    
    .banner-content h1 {
        font-size: var(--font-md);
    }
    
    .banner-content p {
        font-size: var(--font-xs);
    }
    
    .search-box-banner .input-group input {
        padding: 10px 14px;
        font-size: var(--font-xs);
    }
    
    .search-box-banner button {
        padding: 0 16px;
    }
    
    .supplier-header h1 {
        font-size: var(--font-md);
    }
    
    .filter-btn {
        padding: 4px 12px;
        font-size: var(--font-xs);
        margin: 2px;
    }
    
    .media-preview {
        height: 180px;
    }
    
    .media-title {
        font-size: var(--font-sm);
    }
    
    .col-md-4, .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .animated-banner {
        height: 280px;
    }
    
    .banner-content h1 {
        font-size: var(--font-md);
    }
    
    .banner-content h1 i {
        margin-right: 6px;
    }
    
    .banner-content p {
        font-size: var(--font-xs);
    }
    
    .supplier-icon {
        width: 50px;
        height: 50px;
    }
    
    .supplier-icon i {
        font-size: 24px;
    }
    
    .supplier-name {
        font-size: var(--font-sm);
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .animated-banner, 
    .supplier-header, 
    .filter-bar, 
    .search-bar, 
    .btn-outline-secondary, 
    .btn-primary {
        display: none;
    }
    
    .media-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
    
    body {
        background: white;
    }
}