/* Vivaah Vibes - Royal Wedding Theme Styling */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Outfit:wght@100..900&display=swap');

/* Color Variables */
:root {
    --royal-maroon: #5E1925;
    --dark-maroon: #3B0D15;
    --gold: #D4AF37;
    --bright-gold: #FFDF00;
    --ivory: #FFFDF9;
    --soft-cream: #FDF7E7;
    --charcoal: #2E2628;
    --muted-gold: #BCA374;
    --pure-white: #FFFFFF;
    --shadow: rgba(94, 25, 37, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--ivory);
    color: var(--charcoal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, .brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--royal-maroon);
}

/* Base Layout & Header */
header {
    background-color: var(--royal-maroon);
    border-bottom: 3px solid var(--gold);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px var(--shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-circle {
    width: 45px;
    height: 45px;
    background-color: var(--gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--royal-maroon);
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    border: 2px solid var(--ivory);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.brand-name {
    color: var(--ivory);
    font-size: 24px;
    letter-spacing: 1px;
}

.nav-links a {
    color: var(--soft-cream);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-left: 20px;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

.nav-links a:hover {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.nav-links .logout-btn {
    background-color: transparent;
    border: 2px solid var(--gold);
    padding: 6px 14px;
    border-radius: 20px;
    color: var(--gold);
}

.nav-links .logout-btn:hover {
    background-color: var(--gold);
    color: var(--royal-maroon);
}

/* Alert System */
.flash-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 0 auto;
    padding: 0 20px;
}

.alert {
    padding: 14px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 5px solid;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.alert-success {
    background-color: #E2F4E9;
    color: #1A5C37;
    border-left-color: #2EAE60;
}

.alert-danger {
    background-color: #FCE8E6;
    color: #A82E2E;
    border-left-color: #EB5757;
}

.alert-info {
    background-color: #E8F4FD;
    color: #1D5B8C;
    border-left-color: #2D9CDB;
}

/* Main Container */
main {
    flex: 1;
    padding: 30px 20px 80px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Auth Pages (Login / Register) */
.auth-wrapper {
    max-width: 500px;
    margin: 40px auto;
    background: var(--pure-white);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.3);
    overflow: hidden;
}

.auth-header {
    background-color: var(--royal-maroon);
    color: var(--ivory);
    padding: 30px;
    text-align: center;
    border-bottom: 3px solid var(--gold);
}

.auth-header h2 {
    color: var(--gold);
    margin-bottom: 5px;
}

.auth-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-maroon);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid rgba(94, 25, 37, 0.2);
    border-radius: 8px;
    background-color: var(--ivory);
    font-family: inherit;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
    background-color: var(--pure-white);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%235E1925' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--royal-maroon), var(--dark-maroon));
    color: var(--soft-cream);
    border: 2px solid var(--gold);
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold), var(--muted-gold));
    color: var(--dark-maroon);
    border-color: var(--royal-maroon);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer a {
    color: var(--royal-maroon);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    color: var(--gold);
    text-decoration: underline;
}

/* Home / Dashboard Grids */
.welcome-section {
    text-align: center;
    margin-bottom: 40px;
}

.welcome-section h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 18px;
    color: var(--muted-gold);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.card {
    background-color: var(--pure-white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 6px 15px var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--gold);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(94, 25, 37, 0.25);
    border-color: var(--gold);
}

.card:hover::before {
    height: 8px;
    background-color: var(--royal-maroon);
}

.card-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--gold);
    display: inline-block;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.15);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.card p {
    font-size: 14px;
    color: var(--charcoal);
    opacity: 0.8;
}

/* User Profile Styling */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background-color: var(--pure-white);
    border-radius: var(--border-radius);
    border: 2px solid var(--gold);
    box-shadow: 0 8px 25px var(--shadow);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.profile-pic-container {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    overflow: hidden;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-upload-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-input {
    font-size: 13px;
}

.btn-upload {
    background-color: var(--royal-maroon);
    color: var(--ivory);
    border: 1px solid var(--gold);
    padding: 6px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-upload:hover {
    background-color: var(--gold);
    color: var(--royal-maroon);
}

.profile-info {
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--soft-cream);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--royal-maroon);
}

.profile-info p {
    margin-bottom: 10px;
    font-size: 16px;
}

.profile-info p:last-child {
    margin-bottom: 0;
}

.profile-info strong {
    color: var(--royal-maroon);
}

/* Bottom Navigation Bar (Centered Mobile-friendly Floating Bar) */
.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(94, 25, 37, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold);
    padding: 10px 30px;
    border-radius: 40px;
    display: flex;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--soft-cream);
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
    transition: var(--transition);
}

.bottom-nav-item i {
    font-size: 20px;
    color: var(--gold);
}

.bottom-nav-item:hover {
    color: var(--bright-gold);
    transform: translateY(-2px);
}

.bottom-nav-item.active {
    color: var(--bright-gold);
}

.bottom-nav-item.active i {
    color: var(--bright-gold);
    text-shadow: 0 0 8px rgba(255, 223, 0, 0.6);
}

/* Help Page */
.help-card {
    background: var(--pure-white);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 20px var(--shadow);
}

.faq-item {
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(94, 25, 37, 0.1);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: var(--royal-maroon);
}

.faq-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--charcoal);
}

/* Footer Section */
footer {
    background-color: var(--dark-maroon);
    border-top: 1px solid var(--gold);
    padding: 20px;
    text-align: center;
    color: var(--soft-cream);
    font-size: 14px;
}

/* Responsiveness */
@media(max-width: 600px) {
    .bottom-nav {
        width: 90%;
        gap: 20px;
        justify-content: space-around;
        padding: 10px 15px;
    }
}
