/* Modern clean styles for TerribleProxies */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --text-color: #334155;
    --light-bg: #f8fafc;
    --dark-bg: #1e293b;
    --border-color: #e2e8f0;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
    line-height: 1.6;
    margin: 20px;
}

/* Header */
header {
    border-bottom: 1px solid var(--border-color);
    background-color: white;
}

i {
    margin-right: 5px;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    background: linear-gradient(45deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color) !important;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

    .nav-link:hover {
        color: var(--primary-color) !important;
    }

/* Main container */
.main-container {
    padding: 3rem 0;
    min-height: calc(100vh - 160px);
}

/* Hero section */
.hero-section {
    text-align: center;
    margin-bottom: 2.5rem;
}

    .hero-section h1 {
        font-weight: 700;
        font-size: 2.5rem;
        margin-bottom: 1rem;
        background: linear-gradient(45deg, var(--primary-color), #8b5cf6);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .hero-section .lead {
        font-size: 1.25rem;
        color: #64748b;
        max-width: 600px;
        margin: 0 auto;
    }

h2 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Search container */
.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
}

    .search-container .form-control {
        border-radius: 0.5rem 0 0 0.5rem;
        padding: 0.75rem 1.25rem;
        border: 1px solid var(--border-color);
        box-shadow: none;
        font-size: 1rem;
    }

    .search-container .btn {
        border-radius: 0 0.5rem 0.5rem 0;
        padding: 0.75rem 1.5rem;
        background-color: var(--primary-color);
        border-color: var(--primary-color);
        font-weight: 500;
    }

        .search-container .btn:hover {
            background-color: var(--primary-hover);
            border-color: var(--primary-hover);
        }

/* Style selection dropdown */
.style-selection {
    margin-top: 1rem;
}

    .style-selection .form-label {
        font-weight: 500;
        color: var(--text-color);
        margin-bottom: 0.5rem;
    }

    .style-selection .form-select {
        border-radius: 0.5rem;
        padding: 0.75rem 1.25rem;
        border: 1px solid var(--border-color);
        box-shadow: none;
        font-size: 1rem;
        background-color: white;
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }

        .style-selection .form-select:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
        }

.download-container {
    text-align: center;
}

.download-container .btn {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.download-container .btn:hover {
}

/* Card results */
.card-results {
    margin-top: 2rem;
}

    .card-results h2 {
        font-weight: 600;
        margin-bottom: 1.5rem;
        font-size: 1.75rem;
    }

/* Card stacking styles */
.card-stack-container {
    position: relative;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.card-container {
    position: absolute;
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: drop-shadow(5px 5px 10px #666666);
}

    .card-container.card-top:hover {
        transform: translateY(-5px);
        box-shadow: var(--hover-shadow);
    }

.card-image {
    width: 100%;
    display: block;
}

.card-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-container.card-top:hover .card-hover {
    opacity: 1;
}

.card-quantity {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: bold;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.card-actions {
    display: flex;
    justify-content: flex-end;
}

.download-btn {
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
}

/* Footer */
footer {
    background-color: white;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    color: #64748b;
}

    footer a {
        color: var(--primary-color);
        text-decoration: none;
    }

        footer a:hover {
            text-decoration: underline;
        }

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .search-container .form-control,
    .search-container .btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .main-container {
        padding: 2rem 0;
    }

    .card-stack-container {
        margin-bottom: 7rem;
    }
}

.image-scroll-container {
    width: 100%;
    margin: 2rem 0;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background-color: #f8f9fa;
    padding: 15px 0;
}

.image-scroll-track {
    display: flex;
    position: relative;
    width: fit-content;
}

.image-item {
    flex: 0 0 300px;
    padding: 0 10px;
}

    .image-item img {
        width: 100%;
        object-fit: cover;
        border-radius: 6px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }

        .image-item img:hover {
            transform: scale(1.03);
        }
