/* Custom CSS for Linkup Studio OÜ Gaming Review Website */

/* Root Variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --text-color: #374151;
    --border-color: #e5e7eb;
    --gaming-purple: #8b5cf6;
    --gaming-cyan: #06b6d4;
    --gaming-green: #10b981;
    --gaming-red: #ef4444;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-nav .nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.05)"><polygon points="0,0 1000,0 1000,100 0,80"/></svg>');
    position: relative;
    padding: 100px 0;
    color: white;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37,99,235,0.8), rgba(30,64,175,0.8));
    z-index: 1;
}

.market-stats {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat-card {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
}

.stat-card h4 {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-img-top {
    border-radius: 15px 15px 0 0;
    height: 200px;
    object-fit: cover;
}

.card-header {
    background: var(--light-color);
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--dark-color);
}

/* Review Cards */
.review-card {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--primary-color);
}

.review-article {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.review-article h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Ratings */
.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.rating i {
    font-size: 1.1rem;
}

.rating span {
    font-weight: 600;
    color: var(--dark-color);
}

/* Buttons */
.btn {
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
}

.btn-outline-light:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

/* Stat Boxes */
.stat-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-box h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Category Cards */
.category-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.category-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Opportunity Cards */
.opportunity-card {
    background: linear-gradient(135deg, var(--gaming-purple), var(--gaming-cyan));
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-3px);
}

.opportunity-card h5 {
    color: white;
    margin-bottom: 1rem;
}

/* Blog Posts */
.blog-post {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.blog-post h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.post-meta {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta i {
    color: var(--accent-color);
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-info {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.contact-details h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

/* Search Page */
.search-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-filters h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.popular-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item h6 {
    margin-bottom: 0.5rem;
}

.popular-item .rating {
    font-size: 0.9rem;
}

/* Newsletter */
.newsletter-form {
    max-width: 600px;
    margin: 0 auto;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent p {
    margin-bottom: 0;
}

.cookie-consent a {
    color: var(--accent-color);
    text-decoration: none;
}

.cookie-consent a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
}

.sidebar .card {
    margin-bottom: 2rem;
}

.sidebar .card-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
}

.sidebar .card-body {
    background: white;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.sidebar li:last-child {
    border-bottom: none;
}

.sidebar a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: var(--primary-color);
}

/* Legal Pages */
.legal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legal-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.legal-content ul {
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content .contact-info {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
}

.legal-content .table th {
    background: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
    color: white;
}

footer h5, footer h6 {
    color: white;
    margin-bottom: 1rem;
}

footer p {
    margin-bottom: 0.5rem;
}

footer a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .stat-box {
        margin-bottom: 1rem;
    }
    
    .review-article {
        padding: 1.5rem;
    }
    
    .blog-post {
        padding: 1.5rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
    
    .search-form {
        padding: 1.5rem;
    }
    
    .sidebar {
        margin-top: 2rem;
        position: static;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    .market-stats {
        padding: 1.5rem;
    }
    
    .stat-card h4 {
        font-size: 1.2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--light-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-gaming-purple { color: var(--gaming-purple); }
.text-gaming-cyan { color: var(--gaming-cyan); }
.text-gaming-green { color: var(--gaming-green); }
.text-gaming-red { color: var(--gaming-red); }

.bg-gaming-purple { background-color: var(--gaming-purple); }
.bg-gaming-cyan { background-color: var(--gaming-cyan); }
.bg-gaming-green { background-color: var(--gaming-green); }
.bg-gaming-red { background-color: var(--gaming-red); }

.border-gaming-purple { border-color: var(--gaming-purple); }
.border-gaming-cyan { border-color: var(--gaming-cyan); }
.border-gaming-green { border-color: var(--gaming-green); }
.border-gaming-red { border-color: var(--gaming-red); }

/* Print Styles */
@media print {
    .navbar,
    .cookie-consent,
    footer,
    .sidebar {
        display: none !important;
    }
    
    .page-header {
        background: none !important;
        color: black !important;
    }
    
    .hero-section {
        background: none !important;
        color: black !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid var(--border-color) !important;
    }
    
    a {
        color: black !important;
        text-decoration: none !important;
    }
    
    .btn {
        display: none !important;
    }
}
