/* TF2 Content Creator Platform Styles */

:root {
    --tf2-primary: #ffa500;
    --tf2-secondary: #ff8c00;
    --tf2-dark: #1a1a1a;
    --tf2-light: #f4f4f4;
    --tf2-accent: #ffb84d;
    --tf2-red: #ff4444;
    --tf2-blue: #4a90e2;
    --tf2-yellow: #ffcc00;
    --tf2-background: #0f0f0f;
    --tf2-muted: #666666;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--tf2-background);
    color: #ffffff;
    min-height: 100vh;
}

/* Text Colors */
.text-tf2-primary { color: var(--tf2-primary) !important; }
.text-tf2-secondary { color: var(--tf2-secondary) !important; }
.text-tf2-accent { color: var(--tf2-accent) !important; }

/* Background Colors */
.bg-tf2-primary { background-color: var(--tf2-primary) !important; }
.bg-tf2-secondary { background-color: var(--tf2-secondary) !important; }

/* Navigation */
.tf2-navbar {
    background: linear-gradient(135deg, var(--tf2-dark) 0%, #1a0f08 100%);
    border-bottom: 3px solid var(--tf2-primary);
    box-shadow: 0 2px 10px rgba(255, 165, 0, 0.3);
}

.tf2-title {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--tf2-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 0 2px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 165, 0, 0.2);
    transform: translateY(-1px);
}

/* Buttons */
.btn-tf2-primary {
    background: linear-gradient(135deg, var(--tf2-primary) 0%, var(--tf2-secondary) 100%);
    border: 2px solid var(--tf2-primary);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 165, 0, 0.3);
}

.btn-tf2-primary:hover {
    background: linear-gradient(135deg, var(--tf2-secondary) 0%, var(--tf2-primary) 100%);
    border-color: var(--tf2-secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 107, 53, 0.4);
}

.btn-tf2-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    border: 2px solid #6c757d;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-tf2-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #6c757d 100%);
    color: white;
    transform: translateY(-1px);
}

.btn-steam {
    background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
    border: 2px solid #66c0f4;
    color: #66c0f4;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-steam:hover {
    background: linear-gradient(135deg, #2a475e 0%, #171a21 100%);
    color: #66c0f4;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 192, 244, 0.3);
}

/* Cards */
.card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    color: #ffffff;
}

.card:hover {
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.2);
}

.card-header {
    background: linear-gradient(135deg, var(--tf2-primary) 0%, var(--tf2-secondary) 100%);
    border-bottom: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(44, 24, 16, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::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 1000 1000"><polygon fill="%23ff6b35" fill-opacity="0.1" points="0,1000 1000,0 1000,1000"/></svg>');
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-image .tf2-badge {
    background: linear-gradient(135deg, var(--tf2-primary) 0%, var(--tf2-secondary) 100%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Stats Section */
.stats-section {
    background: var(--tf2-dark);
}

.stat-card {
    background: var(--tf2-dark);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
    border-color: var(--tf2-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.3);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--tf2-primary);
    margin: 10px 0;
}

/* Main Content Section */
.main-content-section {
    background: var(--tf2-background);
    min-height: 100vh;
    padding: 20px 0;
}

/* Welcome Banner */
.welcome-banner {
    background: var(--tf2-dark);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Section Headers */
.section-header {
    color: var(--tf2-primary);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Game Cards */
.game-card {
    display: block;
    background: var(--tf2-dark);
    border: 2px solid rgba(255, 165, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-card:hover {
    border-color: var(--tf2-primary);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.3);
    color: inherit;
    text-decoration: none;
}

.game-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.game-icon {
    font-size: 2.5rem;
    color: var(--tf2-primary);
    margin-bottom: 1rem;
}

.game-info h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.game-stats {
    margin-top: auto;
}

.stat-badge {
    background: rgba(255, 165, 0, 0.2);
    color: var(--tf2-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

.stat-value {
    color: var(--tf2-primary);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Steam Login Button Large */
.btn-steam-large {
    background: linear-gradient(135deg, #171a21 0%, #2a475e 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-steam-large:hover {
    background: linear-gradient(135deg, #2a475e 0%, #66c0f4 100%);
    transform: translateY(-2px);
    color: white;
}

/* Live Stats Table */
.live-stats-table {
    background: var(--tf2-dark);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 165, 0, 0.2);
}

.table-header {
    background: rgba(255, 107, 53, 0.1);
    padding: 1rem;
    display: flex;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
}

.header-col {
    flex: 1;
    color: var(--tf2-primary);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-align: center;
}

.stats-row {
    display: flex;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.stats-row:hover {
    background: rgba(255, 165, 0, 0.05);
}

.stats-col {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cccccc;
    font-size: 0.9rem;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 165, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tf2-primary);
}

.creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-name {
    font-weight: 500;
}

.video-title-short {
    color: white;
    font-weight: 500;
}

.view-count, .earnings-amount {
    color: var(--tf2-primary);
    font-weight: bold;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-approved {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.status-rejected {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--tf2-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--tf2-dark);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    height: 100%;
    border: 2px solid rgba(255, 165, 0, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    border-color: var(--tf2-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.3);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    color: var(--tf2-primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

/* Video Cards */
.video-card {
    background: var(--tf2-dark);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid rgba(255, 165, 0, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-card:hover {
    border-color: var(--tf2-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
}

.video-thumbnail {
    background: linear-gradient(135deg, var(--tf2-primary) 0%, var(--tf2-secondary) 100%);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-info {
    padding: 1rem;
}

.video-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.video-stats span {
    font-size: 0.9rem;
    color: #999;
}

/* Login Section */
.login-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.login-card {
    background: var(--tf2-dark);
    padding: 3rem;
    border-radius: 15px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.login-info, .login-features {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--tf2-primary);
}

.feature-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(255, 107, 53, 0.1);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 165, 0, 0.2);
    transform: translateY(-2px);
}

/* Dashboard */
.welcome-header {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2) 0%, rgba(232, 117, 26, 0.1) 100%);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid rgba(255, 165, 0, 0.3);
    margin-bottom: 2rem;
}

.stat-card.bg-primary { background: linear-gradient(135deg, var(--tf2-blue) 0%, #357abd 100%) !important; }
.stat-card.bg-success { background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%) !important; }
.stat-card.bg-warning { background: linear-gradient(135deg, var(--tf2-yellow) 0%, #e0a800 100%) !important; }
.stat-card.bg-info { background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%) !important; }

.stat-icon {
    font-size: 2rem;
    margin-right: 1rem;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.stat-content p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Profile */
.stat-box {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid var(--tf2-primary);
}

.stat-icon {
    margin-right: 1rem;
}

.achievement-badge {
    text-align: center;
    padding: 1.5rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.achievement-badge.earned {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.1) 100%);
    border: 2px solid rgba(40, 167, 69, 0.5);
}

.achievement-badge.locked {
    background: rgba(108, 117, 125, 0.1);
    border: 2px solid rgba(108, 117, 125, 0.3);
    opacity: 0.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2) 0%, rgba(232, 117, 26, 0.1) 100%);
    padding: 80px 0;
    text-align: center;
}

/* Footer */
.tf2-footer {
    background: linear-gradient(135deg, var(--tf2-dark) 0%, #1a0f08 100%);
    border-top: 3px solid var(--tf2-primary);
    padding: 2rem 0;
    margin-top: auto;
}

/* Form Styles */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.3);
    color: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--tf2-primary);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-label {
    color: var(--tf2-primary);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Table Styles */
.table {
    color: #ffffff;
}

.table th {
    border-color: rgba(255, 165, 0, 0.3);
    color: var(--tf2-primary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table td {
    border-color: rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 107, 53, 0.1);
}

/* Badges */
.badge {
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.modal {
    z-index: 1060;
}

.modal-backdrop {
    z-index: 1050;
}

.modal-content {
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    border: 2px solid rgba(255, 107, 53, 0.5);
    color: #ffffff;
    z-index: 1065;
    position: relative;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 165, 0, 0.3);
}

.modal-footer {
    border-top: 1px solid rgba(255, 165, 0, 0.3);
}

/* Ensure dropdown menus and other elements don't overlap modals */
.dropdown-menu {
    z-index: 1000;
}

.nav-tabs {
    z-index: 1030;
}

.navbar {
    z-index: 1040;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: 2px solid;
    font-weight: 500;
}

.alert-info {
    background: rgba(23, 162, 184, 0.15);
    border-color: rgba(23, 162, 184, 0.5);
    color: #17a2b8;
}

.alert-warning {
    background: rgba(255, 204, 0, 0.15);
    border-color: rgba(255, 204, 0, 0.5);
    color: var(--tf2-yellow);
}

.alert-success {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.5);
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .hero-image .tf2-badge {
        width: 150px;
        height: 150px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--tf2-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--tf2-primary) 0%, var(--tf2-secondary) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--tf2-secondary) 0%, var(--tf2-primary) 100%);
}

/* Animation for loading states */
.views-count {
    display: inline-block;
    transition: all 0.3s ease;
}

.views-count:hover {
    color: var(--tf2-primary);
    transform: scale(1.1);
}

/* Video Thumbnails */
.video-thumbnail img {
    transition: transform 0.3s ease;
}

.video-thumbnail img:hover {
    transform: scale(1.05);
}

.video-duration {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    position: absolute;
    bottom: 4px;
    right: 4px;
}

.video-info-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px;
    color: white;
    font-size: 0.75rem;
}

/* Additional utility classes */
.text-monospace {
    font-family: 'Courier New', Courier, monospace;
}

.border-tf2 {
    border: 2px solid var(--tf2-primary) !important;
}

.rounded-tf2 {
    border-radius: 10px !important;
}

/* Performance optimizations */
.card, .btn, .feature-card, .video-card {
    will-change: transform;
}

/* Industrial theme elements */
.industrial-texture {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 107, 53, 0.1) 2px,
            rgba(255, 107, 53, 0.1) 4px
        );
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}
