/* Bootstrap Custom Styles for Beat The House Casino Directory */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
    --border-color: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* space for fixed header */
}

.hero::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="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white !important;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: white !important;
}



/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--light-color);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--gray-color);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--dark-color), #374151);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), #d97706);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #9ca3af;
}

/* Logo Strip */
.logo-strip {
    background: white;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem 0;
    margin: 2rem 0 0;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.footer-logo {
    height: 40px;
    width: auto;
    max-width: 150px;
    filter: grayscale(0.2);
    transition: filter 0.3s ease;
}

.footer-logo:hover {
    filter: grayscale(0);
}

/* Footer Dice Container */
.footer-dice-container {
    margin-top: 50px;
    align-items: flex-start !important;
    display: flex;
    justify-content: flex-start;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Dice Animation */
.dice-container {
    perspective: 1000px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dice-wrapper {
    position: relative;
    display: flex;
    gap: 2rem;
}

.dice {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: diceSpin 4s linear infinite;
}

.dice-2 {
    animation-delay: 0.5s;
    animation-duration: 3.5s;
}

.dice-face {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}

.dice-face.front { transform: translateZ(40px); }
.dice-face.back { transform: translateZ(-40px) rotateY(180deg); }
.dice-face.right { transform: translateX(40px) rotateY(90deg); }
.dice-face.left { transform: translateX(-40px) rotateY(-90deg); }
.dice-face.top { transform: translateY(-40px) rotateX(90deg); }
.dice-face.bottom { transform: translateY(40px) rotateX(-90deg); }

.dot {
    width: 12px;
    height: 12px;
    background: #1f2937;
    border-radius: 50%;
    margin: 2px;
}

/* Dice face layouts */
.dice-face.front .dot:nth-child(1) { grid-area: 1/1; }
.dice-face.front .dot:nth-child(2) { grid-area: 1/3; }
.dice-face.front .dot:nth-child(3) { grid-area: 2/2; }
.dice-face.front .dot:nth-child(4) { grid-area: 3/1; }
.dice-face.front .dot:nth-child(5) { grid-area: 3/3; }
.dice-face.front .dot:nth-child(6) { grid-area: 4/2; }

.dice-face.back .dot:nth-child(1) { grid-area: 1/1; }
.dice-face.back .dot:nth-child(2) { grid-area: 4/4; }

.dice-face.right .dot:nth-child(1) { grid-area: 1/1; }
.dice-face.right .dot:nth-child(2) { grid-area: 2/2; }
.dice-face.right .dot:nth-child(3) { grid-area: 3/3; }

.dice-face.left .dot:nth-child(1) { grid-area: 1/1; }
.dice-face.left .dot:nth-child(2) { grid-area: 1/3; }
.dice-face.left .dot:nth-child(3) { grid-area: 3/1; }
.dice-face.left .dot:nth-child(4) { grid-area: 3/3; }

.dice-face.top .dot:nth-child(1) { grid-area: 1/1; }
.dice-face.top .dot:nth-child(2) { grid-area: 1/3; }
.dice-face.top .dot:nth-child(3) { grid-area: 2/2; }
.dice-face.top .dot:nth-child(4) { grid-area: 3/1; }
.dice-face.top .dot:nth-child(5) { grid-area: 3/3; }

.dice-face.bottom .dot:nth-child(1) { grid-area: 2/2; }

/* Apply grid layout to dice faces */
.dice-face {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 4px;
}

@keyframes diceSpin {
    0% {
        transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg);
    }
    25% {
        transform: rotateX(360deg) rotateY(180deg) rotateZ(90deg);
    }
    50% {
        transform: rotateX(720deg) rotateY(360deg) rotateZ(180deg);
    }
    75% {
        transform: rotateX(1080deg) rotateY(540deg) rotateZ(270deg);
    }
    100% {
        transform: rotateX(1440deg) rotateY(720deg) rotateZ(360deg);
    }
}

/* Floating elements */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Additional Casino Directory Styles */
/* Casino Grid */
.casino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.casino-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.casino-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.casino-banner {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.casino-banner.has-screenshot {
    background: none;
}

.casino-screenshot {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.casino-screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.casino-screenshot:hover .casino-screenshot-img {
    transform: scale(1.05);
}

.casino-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px 15px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
}

.casino-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #667eea;
}

.casino-rating {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: #ffd700;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.casino-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.casino-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.casino-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}



.casino-bonus {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem; /* fixed gap above actions */
    margin-top: auto; /* push bonus box down above actions */
    text-align: center;
}

.bonus-label {
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.bonus-value {
    font-size: 1.1rem;
    font-weight: bold;
}

.bonus-terms-link {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.bonus-terms-link:hover {
    color: #667eea;
    text-decoration: underline;
}

.casino-actions {
    display: flex;
    gap: 0.5rem;
}

/* Filters */
.filters {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.form-group {
    margin-bottom: 0;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Results Info */
.results-info {
    background: #e9ecef;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* Section Styles */
.section {
    padding: 4rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}



/* Responsive adjustments for casino grid */
@media (max-width: 768px) {
    .casino-grid {
        grid-template-columns: 1fr;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
} 