/* StarEvo Rate Card - Main Stylesheet */

:root {
    --starevo-primary: #ff6b35;
    --starevo-secondary: #ff8c42;
    --starevo-dark: #e55a2b;
    --starevo-light: #fff4f0;
    --starevo-gradient: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    min-height: 100vh;
    padding: 0;
}

.rate-card-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* Talent Header */
.talent-header {
    background: var(--starevo-gradient);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.talent-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* StarEvo Header Logo */
.starevo-header-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.starevo-header-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.talent-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.3);
    margin: 0 auto 1.5rem;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
    overflow: hidden; /* Tambahkan ini */
}

/* Tambahkan style untuk image */
.talent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Style untuk fallback icon */
.talent-avatar .fallback-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.talent-name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.talent-category {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Social Links - Fixed to be circular */
.social-links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.social-link {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.3);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    transform: translateY(-3px);
}

.talent-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.talent-card-avatar .fallback-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

/* View Toggle */
.view-toggle {
    background: white;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.view-toggle .btn-group {
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
    border-radius: 25px;
    overflow: hidden;
}

.view-toggle .btn {
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 0;
}

.view-toggle .btn-outline-primary {
    color: var(--starevo-primary);
    border-color: var(--starevo-primary);
}

.view-toggle .btn-primary {
    background: var(--starevo-gradient);
    border-color: var(--starevo-primary);
}

/* Video Showcase Section */
.video-showcase-section {
    background: #f8f9fa;
    padding: 3rem 0;
    margin-bottom: 2rem;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.video-showcase-section h3 {
    color: var(--starevo-dark);
    font-weight: 700;
    margin-bottom: 2rem;
}

.video-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 0 3rem;
}

.video-carousel {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.video-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.video-item {
    flex: 0 0 auto;
    width: 200px;
}

.video-container {
    position: relative;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 9/16; /* Vertical aspect ratio for reels/TikTok */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
    opacity: 0.8;
}

.play-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--starevo-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-btn:hover {
    background: white;
    transform: scale(1.1);
}

.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem 1rem 1rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: end;
    font-size: 0.8rem;
}

.video-platform {
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.instagram-badge {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.tiktok-badge {
    background: #000000;
}

.video-views {
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--starevo-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--starevo-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 0.5rem;
}

.next-btn {
    right: 0.5rem;
}

/* Video Modal for Fullscreen */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    max-width: 400px;
    max-height: 90vh;
    aspect-ratio: 9/16;
}

.video-modal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Responsive Design for Videos */
@media (max-width: 768px) {
    .video-carousel-container {
        padding: 0 1rem;
    }
    
    .video-item {
        width: 150px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .prev-btn {
        left: 0.25rem;
    }
    
    .next-btn {
        right: 0.25rem;
    }
    
    .play-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .video-showcase-section {
        padding: 2rem 0;
    }
}

/* Platform Cards */
.platform-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.15);
}

.platform-header {
    background: var(--starevo-light);
    padding: 1.5rem;
    border-bottom: 2px solid var(--starevo-primary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.platform-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.instagram-icon {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.tiktok-icon {
    background: #000000;
}

.platform-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--starevo-dark);
}

/* Card View Styles */
.rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.rate-item {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--starevo-primary);
    transition: all 0.3s ease;
    position: relative;
}

.rate-item:hover {
    background: var(--starevo-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.15);
}

/* List View Styles - Fixed border radius */
.rate-list {
    padding: 0;
}

.rate-list-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-left: 4px solid var(--starevo-primary);
}

.rate-list-item:not(:last-child) {
    border-bottom: none;
}

.rate-list-item:hover {
    background: var(--starevo-light);
}

/* Remove all border radius for list view */
.rate-list-item:first-child,
.rate-list-item:last-child,
.rate-list-item:only-child {
    border-radius: 0;
}

.rate-type {
    font-weight: 600;
    color: var(--starevo-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rate-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--starevo-primary);
    margin-bottom: 1rem;
}

.rate-list-item .rate-price {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.rate-description {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Additional Services */
.additional-services {
    background: var(--starevo-gradient);
    color: white;
    padding: 2.5rem 2rem;
    margin-top: 2rem;
}

.additional-services h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 700;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.service-item:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

/* All Talents Section */
.all-talents-section {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

.btn-starevo-primary {
    background: var(--starevo-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-starevo-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

/* Service Price - Fixed to white color for Additional Services */
.additional-services .rate-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

/* Additional Services - List view rate price should be orange for visibility */
.additional-services .rate-list-item .rate-price {
    color: var(--starevo-primary);
    background: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 1.2rem;
}

.service-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

/* Access Gate */
.access-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 107, 53, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gate-modal {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.gate-left {
    background: var(--starevo-gradient);
    padding: 3rem 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.gate-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

/* StarEvo Logo - Updated for image */
.starevo-logo {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.starevo-logo img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.gate-right {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.welcome-text {
    position: relative;
    z-index: 1;
}

.btn-access {
    background: var(--starevo-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    width: 100%;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white;
}

/* Footer */
.footer-note {
    background: var(--starevo-light);
    padding: 2rem;
    color: var(--starevo-dark);
    border-top: 2px solid var(--starevo-primary);
    margin-top: 2rem;
}

/* Fixed Important Notes to left align */
.footer-note .list-unstyled {
    text-align: left;
}

.footer-note .col-md-4 {
    text-align: right;
}

/* Footer buttons larger */
.footer-note .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gate-modal {
        grid-template-columns: 1fr;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .starevo-header-logo {
        width: 120px;
    }
    
    .gate-left {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .starevo-logo {
        width: 150px;
    }
    
    .gate-right {
        padding: 2rem 1.5rem;
    }
    
    .talent-header {
        padding: 2rem 1rem;
    }
    
    .talent-name {
        font-size: 2rem;
    }
    
    .rate-grid,
    .service-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .view-toggle {
        padding: 1rem;
    }
    
    .view-toggle .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer-note {
        text-align: center;
    }
    
    .footer-note .list-unstyled {
        text-align: left;
    }
    
    .footer-note .col-md-4 {
        text-align: center;
    }
}