/* Custom styles for Gatherings */

/* Typography */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #212529;
}

h1, h2, h3, .display-4, .display-5, .display-6 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    color: #212529;
}

.navbar-brand {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    letter-spacing: -0.5px;
}

/* Layout */
.main-container {
    min-height: calc(100vh - 180px);
    position: relative;
    background-color: #f8f9fa;
}

/* Background dots pattern */
.dots-background {
    position: relative;
    overflow: hidden;
    background-color: #f8f9fa;
}

.dots-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        radial-gradient(circle, rgba(255, 133, 112, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(112, 212, 196, 0.3) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 209, 102, 0.3) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px, 60px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Card styles */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-radius: 16px;
    border: none;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Event/Invitation card design */
.event-card {
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.2s ease;
}

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

.event-card-header {
    height: 160px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.event-card-body {
    padding: 1.5rem;
}

.event-card-date {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Template selection styling */
.template-card {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 20px;
    overflow: hidden;
}

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

.template-card.selected {
    box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), 0.5);
}

/* Button styling */
.btn {
    transition: all 0.2s ease-in-out;
    border-radius: 50px;
    padding: 0.75rem 1.75rem;
}

.btn-primary {
    background-color: #ff8570;
    border-color: #ff8570;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #ff6b52;
    border-color: #ff6b52;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-outline-primary {
    border-color: #ff8570;
    color: #ff8570;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #ff8570;
    border-color: #ff8570;
}

/* Navigation */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .nav-link {
    color: #212529;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: #ff8570;
}

.navbar .nav-link.active {
    color: #ff8570;
    font-weight: 600;
}

/* Footer styling */
.footer {
    background-color: transparent;
    font-size: 0.9rem;
    padding: 2rem 0;
    margin-top: 3rem;
    color: var(--bs-secondary-color);
}

.footer-link {
    color: var(--bs-secondary-color);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--bs-primary);
    text-decoration: underline;
}

/* Event template colors */
.bbq-bg {
    background-color: #ff8570;
}

.wedding-bg {
    background-color: #70d4c4;
}

.anniversary-bg {
    background-color: #ffd166;
}

/* Homepage event cards */
.template-preview-card {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    text-align: center;
    border: none;
}

.template-preview-header {
    padding: 2rem 1rem;
    color: white;
}

.template-preview-body {
    padding: 1rem;
    background-color: white;
    color: black;
}

/* Dashboard card stats */
.stat-card {
    border-radius: 1rem;
    overflow: hidden;
}

.stat-card .card-body {
    padding: 1.5rem;
}

.stat-card .icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    display: inline-block;
}

.stat-card .text-muted {
    font-size: 1rem;
    display: inline-block;
}

/* Invitation preview styling */
.invitation-preview {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* Custom styling for status badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 50px;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .invitation-preview {
        padding: 1rem;
    }
    
    .stat-card .icon {
        font-size: 2rem;
    }
    
    .template-preview-card {
        margin-bottom: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1.25rem;
    }
}