/* Oak Birthdays Custom Bootstrap Overrides */

:root {
    /* Brand colors */
    --bs-primary: purple;
    --bs-primary-rgb: 128, 0, 128;
    --bs-primary-dark: indigo;
}

/* Body background with hero image */
body {
    background-image: url('/images/hero-bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Override Bootstrap primary color */
.btn-primary {
    background-color: purple;
    border-color: purple;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: indigo;
    border-color: indigo;
}

.btn-outline-primary {
    color: purple;
    border-color: purple;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: purple;
    border-color: purple;
    color: white;
}

.text-primary {
    color: purple !important;
}

.navbar-brand {
    color: purple;
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-brand:hover {
    color: indigo;
}

/* Navbar styling */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nav-link {
    color: #222;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: purple;
}

/* Card styling for forms and content */
.card {
    background: rgba(255, 255, 255, 0.95);
    border: none;
}

/* Hero section styling */
.hero {
    background: transparent;
}

/* Footer styling */
footer {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Birthdays grid */
.birthdays-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-height: calc(100vh - 250px);
    overflow-y: auto;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .birthdays-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .birthdays-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.grid-header {
    font-weight: bold;
    background: #f0f0f0;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.875rem;
}

.grid-cell {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 0.875rem;
    word-wrap: break-word;
}

/* Mobile grid styling */
@media (max-width: 767px) {
    .grid-header {
        display: none;
    }

    .grid-cell {
        display: block;
        padding: 0.5rem;
        text-align: left;
        border-bottom: none;
    }

    .grid-cell:before {
        content: attr(data-label);
        font-weight: bold;
        display: inline-block;
        margin-right: 0.5rem;
        color: purple;
    }

    /* Hide Type, First Name, and Last Name on mobile - show only Date, Description, Actions */
    .birthdays-grid > .grid-cell:nth-child(6n+1),  /* Type */
    .birthdays-grid > .grid-cell:nth-child(6n+4),  /* First Name */
    .birthdays-grid > .grid-cell:nth-child(6n+5) { /* Last Name */
        display: none;
    }

    /* Add spacing between rows on mobile */
    .birthdays-grid > .grid-cell:nth-child(6n+2) { /* Date (first visible cell) */
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid #e0e0e0;
    }

    /* Remove label prefix for Actions */
    .birthdays-grid > .grid-cell:nth-child(6n+6):before { /* Actions */
        content: '';
        margin-right: 0;
    }
}

/* Action buttons in grid - using Bootstrap classes */
.edit-btn, .delete-btn {
    margin: 0.125rem;
}

@media (max-width: 767px) {
    .edit-btn, .delete-btn {
        display: inline-block;
        width: auto;
    }
}

/* Cloudflare Turnstile widget centering */
.oak-turnstile {
    display: flex;
    justify-content: center;
}

/* Success/confirmation text styling */
.confirmation-date {
    color: #198754;
    font-weight: 500;
}
