/* Custom styles for Bingo Card Generator */

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    color: var(--white-color) !important;
    font-weight: 600;
}

.navbar-nav .nav-link {
    color: var(--white-color) !important;
    transition: all 0.3s ease;
}

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

.navbar-nav .dropdown-menu {
    background-color: var(--white-color);
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
}

.navbar-nav .dropdown-item {
    color: var(--dark-color) !important;
    padding: 8px 20px;
    transition: all 0.2s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: #f8f9fa;
    color: var(--primary-color) !important;
}

/* Signup Button */
.btn-signup {
    background-color: var(--secondary-color);
    color: var(--white-color) !important;
    border: none;
    border-radius: 50px;
    padding: 8px 20px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.btn-signup:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Error Messages */
.alert {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    padding: 0;
    margin: 0;
    border: none;
    overflow: hidden;
}

.alert.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 200px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border-color: #f5c2c7;
}

/* Loading States */
#loading {
    transition: opacity 0.3s ease-in-out;
}

.btn .spinner-border {
    vertical-align: text-bottom;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Bingo Card Container */
#bingo-card-container {
    transition: all 0.3s ease-in-out;
}

#generating-message {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
}

#generating-message.show {
    opacity: 1;
    height: auto;
    margin: 1rem 0;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Categories Section */
.categories-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.categories-block-wrap {
    height: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.categories-block-wrap:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Custom Block Styles */
.custom-block {
    padding: 1rem 0;
}

.custom-block-icon-wrap {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.custom-block-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #4f46e5;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    margin-right: 1rem;
    flex-shrink: 0;
}

.custom-block-info h6 {
    font-weight: 600;
    color: #2d3748;
}

.custom-block-info p {
    color: #64748b;
    margin-bottom: 0;
}

/* Bingo Grid */
.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    margin: 0 auto;
    max-width: 500px;
}

.bingo-header {
    padding: 0.5rem;
    font-size: 1.1rem;
    border-radius: 4px;
}

.bingo-square {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.25rem;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    background-color: white;
}

.bingo-square:hover {
    background-color: #f8f9fa;
    transform: scale(1.03);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bingo-term {
    word-break: break-word;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Hover effect for cards */
.hover-shadow {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1) !important;
}

/* Custom Buttons */
.btn.custom-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    background-color: #4f46e5;
    color: white;
    border: none;
}

.btn.custom-btn:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    color: white;
}

.btn.custom-btn i {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Bingo Card Styles */
.bingo-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.bingo-header {
    background: #4f46e5;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bingo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 0.75rem;
    background: #f8f9fa;
}

.bingo-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: white;
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #2d3748;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.bingo-cell:hover {
    background: #f1f5f9;
    transform: scale(1.02);
}

.bingo-cell.free {
    background: #eef2ff;
    font-weight: 700;
    color: #4f46e5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .bingo-cell {
        font-size: 0.7rem;
        padding: 0.25rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .bingo-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .bingo-grid {
        gap: 2px;
        padding: 0.5rem;
    }
    
    .bingo-cell {
        font-size: 0.6rem;
        padding: 0.25rem;
    }
}
