/* ============================================
   GameKabi GetLink - Main Stylesheet
   ============================================ */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
}

.navbar-brand i {
    margin-right: 8px;
    color: var(--primary-color);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.hero .lead {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.input-group-lg .form-control {
    border-radius: 8px 0 0 8px;
    border: none;
    padding: 15px 20px;
    font-size: 1.1rem;
}

.input-group-lg .btn {
    border-radius: 0 8px 8px 0;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ============================================
   Result Section
   ============================================ */

#resultSection {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.card-body {
    padding: 30px;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

#directLink {
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

/* ============================================
   Features Section
   ============================================ */

#features {
    background-color: #fff;
}

#features h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

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

.card i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card-title {
    font-weight: 600;
    color: #333;
}

.card-text {
    color: #666;
}

/* ============================================
   How It Works Section
   ============================================ */

#how-it-works {
    background-color: #f8f9fa;
}

#how-it-works h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

#how-it-works h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

#how-it-works p {
    color: #666;
}

/* ============================================
   Modal
   ============================================ */

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

.form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 12px 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-success {
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.btn-outline-success:hover {
    background-color: var(--success-color);
    color: white;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
    margin-top: 80px;
}

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

footer a:hover {
    color: white !important;
}

/* ============================================
   Loading State
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   Alert Messages
   ============================================ */

.alert {
    border-radius: 8px;
    border: none;
    animation: slideDown 0.3s ease-out;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

/* ============================================
   Dashboard
   ============================================ */

.dashboard-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.dashboard-card h5 {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.dashboard-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table th {
    font-weight: 600;
    color: #333;
    padding: 15px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table tbody tr {
    border-bottom: 1px solid #dee2e6;
    transition: background-color 0.3s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .lead {
        font-size: 1rem;
    }

    .input-group-lg .form-control,
    .input-group-lg .btn {
        padding: 12px 15px;
        font-size: 1rem;
    }

    #features h2,
    #how-it-works h2 {
        font-size: 1.8rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 350px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero .lead {
        font-size: 0.9rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-group-lg .form-control {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .input-group-lg .btn {
        border-radius: 8px;
        width: 100%;
    }
}
