/* =================================
   BASE & TYPOGRAPHY STYLES
==================================== */
body {
    background-image: linear-gradient(#ff527d, #ff751a);
    color: white;
}

header h1 {
    font-family: "Goudy Bookletter 1911", serif;
    color: white;
}

h2, h3, h5 {
    font-family: "Goudy Bookletter 1911", serif;
    color: white;
}


/* =================================
   NAVIGATION & FOOTER
==================================== */
.navbar{
    background-color: #ff527d;
}

.navbar-brand {
    font-family: "Goudy Bookletter 1911", serif;
    font-size: 2rem;
    color: white;
}

.nav-link {
    font-size: 1.2rem;
    color: white;
    transition: color 0.2s ease-in-out;
}

.nav-link:hover {
    color: #FFD700;
}

.nav-link.active {
    color: white !important;
}

.nav-link.active:hover {
    color: white !important;
}

footer {
    background-color: #ff751a;
    color: white;
    margin-top: 3rem;
}


/* =================================
   GENERAL COMPONENTS (Cards, Buttons)
==================================== */
.card {
    border: 2px solid #FFD700;
    border-radius: 15px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.rounded-circle {
    border: 5px solid #FFD700;
}

.cta-button-primary {
    display: inline-block;
    background-color: #fb923c;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-family: "Goudy Bookletter 1911", serif;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.cta-button-primary:hover {
    transform: translateY(-3px);
    color: white;
}

.cta-button-secondary {
    display: inline-block;
    background-color: transparent;
    color: #e85d75;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-family: "Goudy Bookletter 1911", serif;
    font-size: 1.2rem;
    font-weight: bold;
    border: 2px solid #FFD700;
    transition: all 0.2s ease-in-out;
}

.cta-button-secondary:hover {
    background-color: #e85d75;
    color: white;
    border-color: #e85d75;
}


/* =================================
   GALLERY STYLES (About Page)
==================================== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-auto-rows: minmax(100px, auto);
    grid-gap: 1rem;
    grid-auto-flow: dense;
}

.gallery-item {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border: 3px solid #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* NEW: Hide extra gallery items initially */
.gallery-item:nth-child(n+7) {
    display: none;
}

.gallery-item.small {
    grid-row: span 1;
    grid-column: span 1;
    min-height: 100px;
}

.gallery-item.medium {
    grid-row: span 2;
    grid-column: span 1;
    min-height: 200px;
}

.gallery-item.large {
    grid-row: span 2;
    grid-column: span 2;
    min-height: 200px;
}

@media (min-width: 600px) {
    .gallery-item.medium {
        grid-column: span 2;
    }
    .gallery-item.large {
        grid-column: span 3;
        grid-row: span 2;
    }
}


/* =================================
   CONTACT US SECTION (Calendar Page)
==================================== */
#contact-us {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 15px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    flex-basis: 250px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background-color: #fb923c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.contact-item h4 {
    color: #e85d75;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-item a {
    text-decoration: none;
    color: #8B4513;
    font-weight: bold;
}

.contact-item a:hover {
    color: #fb923c;
}


/* =================================
   CUSTOM CALENDAR STYLES
==================================== */
#paint-sip-calendar {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.75rem;
    color: #e85d75;
    font-family: "Goudy Bookletter 1911", serif;
}

.calendar-header .btn {
    background-color: transparent;
    border: 2px solid #fb923c;
    color: #fb923c;
    font-weight: bold;
}
.calendar-header .btn:hover {
    background-color: #fb923c;
    color: white;
}

.calendar-grid-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(130px, 1fr));
    gap: 5px;
}

.calendar-grid-header {
    text-align: center;
    font-weight: 600;
    color: #8B4513;
    padding-bottom: 0.5rem;
}

.calendar-day {
    min-height: 120px;
    padding: 8px;
    border: 1px solid #fff5e1;
    border-radius: 4px;
    background-color: #fff;
    color: black;
    transition: border-color 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
}

.day-number {
    font-weight: 500;
    margin-bottom: 5px;
}

.other-month {
    background-color: #f8f9fa;
}
.other-month .day-number {
    color: #ced4da;
}

.today .day-number {
    background-color: #e85d75;
    color: white;
    font-weight: 700;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    display: inline-block;
}

.calendar-event {
    margin-top: 5px;
    padding: 5px 6px;
    font-size: 0.8rem;
    line-height: 1.3;
    background-color: #fb923c;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    white-space: normal;
    word-break: break-word;
}
.calendar-event:hover {
    opacity: 0.85;
}

.private-booking-event {
    background-color: #e85d75 !important;
}

.disabled-event {
    background-color: #b0bec5 !important;
    opacity: 0.7;
    cursor: not-allowed;
}
.disabled-event:hover {
    opacity: 0.7;
}

.scroll-indicator {
    text-align: center;
    color: #8B4513;
    font-family: "Goudy Bookletter 1911", serif;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.scroll-indicator svg {
    width: 18px;
    height: 18px;
    fill: #8B4513;
    position: relative;
}

.arrow-left {
    animation: slide-left 1.5s infinite ease-in-out;
}
.arrow-right {
    animation: slide-right 1.5s infinite ease-in-out;
}

@keyframes slide-left {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

@keyframes slide-right {
    0% { transform: translateX(0); }
    50% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}


/* =================================
   EVENT DETAILS SECTION (Calendar Page)
==================================== */
#event-details-section {
    margin-top: 2rem;
    padding: 2rem;
    background-color: #fff;
    color: black;
    border-radius: 15px;
    border: 2px solid #FFD700;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.5s ease-in-out;
}

#event-details-section.hidden {
    display: none;
}

#event-details-section h3 {
    color: black;
}

.event-details-img {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    margin-right: 2rem;
    border: 2px solid #FFD700;
    object-fit: cover;
}


/* =================================
   MODAL TEXT COLOR FIX
==================================== */
#eventModal .modal-body,
#bookingModal .modal-body,
#eventModal .form-label,
#eventModal .form-text {
    color: black;
}
#eventModal .modal-body p,
#bookingModal .modal-body p {
    color: black;
}
#eventModal .modal-title,
#bookingModal .modal-title {
    color: black;
}


/* =================================
   MOBILE RESPONSIVE STYLES
==================================== */
@media (max-width: 768px) {
    .event-details-img {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .calendar-day {
        min-height: 90px;
        padding: 4px;
    }
    .calendar-event {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 4px 5px;
    }
    .today .day-number {
        height: 24px;
        width: 24px;
        line-height: 24px;
        font-size: 0.8rem;
    }
}