/* =============================================
   BRAND CAROUSELS & CARDS STYLES
   ============================================= */

/* Brand Carousels Section */
.brand-carousels-section {
    padding: 30px 0;
    background: #f8f9fa;
}

.brand-carousel-wrap {
    margin-bottom: 50px;
}

.brand-carousel-wrap:last-child {
    margin-bottom: 0;
}

.brand-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.brand-carousel-header h3 {
    color: #333;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-carousel-header h3 i {
    font-size: 20px;
}

.brand-carousel-header h3 i.fa-fire {
    color: #ff4757;
}

.brand-carousel-header h3 i.fa-clock {
    color: #5dade2;
}

.brand-carousel-header h3 i.fa-star {
    color: #f39c12;
}

.view-all-link {
    color: #6a7cdb;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #4a5fcf;
}

.brand-carousel-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.brand-carousel-container::-webkit-scrollbar {
    height: 6px;
}

.brand-carousel-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.brand-carousel-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.brand-carousel-container::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

.brand-carousel-item {
    min-width: 300px;
}

/* Brand Card Styles */
.brand-card {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    width: 224px;
    flex-shrink: 0;
    border: 1px solid #eee;
    height: 120px;
    position: relative;
}

.brand-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.brand-card-header {
    display: flex;
    position: relative;
    align-items: flex-start;
    margin-bottom: 8px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-info {
    flex: 1;
    min-width: 0;
    padding-left: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.brand-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    width: 100%;
    padding-right: 45px;
    text-align: left;
}

.brand-info h4 a {
    color: #334e6f;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-align: left;
}

.brand-categories {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
    align-items: center;
    width: 100%;
    padding-top: 8px;
}

.brand-categories .category-label {
    color: #666;
    font-size: 11px;
    font-weight: 500;
}

.brand-categories [data-microtip] {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.brand-categories [data-microtip] i {
    color: #4DB7FE;
    transition: all 0.3s ease;
}

.brand-categories [data-microtip]:hover i {
    color: #2a41e8;
}

/* Microtip Tooltip Styles */
[data-microtip] {
    position: relative;
}

[data-microtip]:before,
[data-microtip]:after {
    position: absolute;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    visibility: hidden;
    opacity: 0;
    z-index: 1000000;
    pointer-events: none;
    transition: 0.3s ease;
    transition-delay: 0s;
}

[data-microtip]:hover:before,
[data-microtip]:hover:after {
    visibility: visible;
    opacity: 1;
}

[data-microtip]:before {
    content: '';
    border: 5px solid transparent;
    z-index: 1000001;
    border-top-color: rgba(17, 17, 17, 0.9);
    margin-bottom: -5px;
}

[data-microtip]:after {
    background: rgba(17, 17, 17, 0.9);
    border-radius: 4px;
    color: #ffffff;
    content: attr(data-microtip);
    font-size: 11px;
    padding: 0.5em 1em;
    white-space: nowrap;
    box-sizing: content-box;
}

[data-microtip]:before {
    left: 50%;
    transform: translate(-50%, -10px);
}

[data-microtip]:after {
    left: 50%;
    transform: translate(-50%, -10px);
}

[data-microtip]:hover:before {
    transform: translate(-50%, 0);
}

[data-microtip]:hover:after {
    transform: translate(-50%, 0);
}

[data-microtip-position="top"]:before {
    border-top-color: rgba(17, 17, 17, 0.9);
    bottom: 100%;
}

[data-microtip-position="top"]:after {
    bottom: 100%;
}

[data-microtip-position="top"]:hover:before {
    transform: translate(-50%, 0);
}

[data-microtip-position="top"]:hover:after {
    transform: translate(-50%, 0);
}

/* Brand Status Badges */
.brand-status-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 8px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 10px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.brand-status-badge.hot {
    background: linear-gradient(135deg, #ff4757, #ff3742);
    box-shadow: 0 2px 6px rgba(255, 71, 87, 0.3);
}

.brand-status-badge.new {
    background: linear-gradient(135deg, #5dade2, #3498db);
    box-shadow: 0 2px 6px rgba(93, 173, 226, 0.3);
}

.brand-status-badge.popular {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 2px 6px rgba(243, 156, 18, 0.3);
}

.brand-card:hover .brand-status-badge {
    transform: scale(1.1);
}

/* Brand Card Information Areas - Styled as colorful bars matching status badges */
.vote-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    color: #fff;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 4px;
    height: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.vote-count {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.vote-period {
    opacity: 0.9;
    font-size: 10px;
}

.time-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: #fff;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 4px;
    height: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-card:hover .vote-info,
.brand-card:hover .time-info,
.brand-card:hover .view-info {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.discovery-time {
    font-weight: 500;
    margin-right: 2px;
}

.time-ago {
    font-weight: 500;
}

.view-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #ffd93d, #f6b93b);
    color: #fff;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-radius: 4px;
    height: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-count {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.view-period {
    opacity: 0.9;
    font-size: 10px;
}

/* Brand Card Stats */
.brand-card-stats {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.stat-item {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 3px;
}

.stat-item.good {
    background: #d4edda;
    color: #155724;
}

.stat-item.bad {
    background: #f8d7da;
    color: #721c24;
}

.stat-item.views {
    background: #cce7ff;
    color: #004085;
}

.stat-item.time {
    background: #fff3cd;
    color: #856404;
}

.stat-item i {
    font-size: 8px;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.cta-buttons .btn {
    padding: 15px 30px;
    font-size: 16px;
}

/* Brand Card Link Styles */
.brand-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.brand-card-link:focus {
    outline: none;
}

/* Prevent text selection during drag */
.brand-card-link.dragging {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Override brand-info h4 styles since we removed the inner link */
.brand-card-link .brand-info h4 {
    color: #334e6f;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    text-align: left;
}

/* Responsive Styles */
@media only screen and (max-width: 768px) {
    .brand-carousel-item {
        min-width: 280px;
    }

    .brand-carousel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .brand-carousel-header h3 {
        font-size: 20px;
    }

    .cta-content h2 {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 200px;
    }
}

@media only screen and (max-width: 480px) {
    .brand-carousel-item {
        min-width: 260px;
    }

    .brand-card {
        padding: 15px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-info h4 {
        font-size: 14px;
    }
} 