/* === GENERAL STYLES === */
* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Comfortaa', sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === LOGIN STYLES === */
#login-container {
    background: #1f1f1f;
    padding: 40px 30px;
    border-radius: 12px;
    margin: 20px auto;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    text-align: center;
    position: relative;
    z-index: 1000;
    border: 1px solid #333;
}

@media (max-height: 600px) {
    #login-container {
        margin-top: 10px;
        padding: 30px 20px;
    }
}

#login-container h2 {
    font-family: 'Comfortaa', sans-serif;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

#login-container input {
    padding: 12px 15px;
    width: 100%;
    margin: 15px 0;
    border-radius: 8px;
    border: 2px solid #333;
    outline: none;
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    background: #2d2d2d;
    color: white;
    transition: border-color 0.3s;
}

#login-container input:focus {
    border-color: #1e90ff;
}

#login-container button {
    padding: 12px 30px;
    background-color: #1e90ff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-family: 'Comfortaa', sans-serif;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

#login-container button:hover {
    background-color: #1c7ed6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 144, 255, 0.3);
}

#login-container button:active {
    transform: translateY(0);
}

#error {
    color: #ff4d4f;
    display: none;
    margin-top: 10px;
    font-family: 'Comfortaa', sans-serif;
}

/* === MAIN CONTENT === */
.main-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    padding-bottom: 80px;
}

/* === HEADER === */
.site-header {
    background-color: #1f1f1f;
    color: #ffffff;
    padding: 15px 0;
    text-align: center;
    border-bottom: 2px solid #1e90ff;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header h1 {
    font-family: 'Bad Script', cursive;
    font-size: 1.8rem;
    margin: 0;
    font-weight: normal;
    padding: 0 15px;
    line-height: 1.3;
}

.site-header .back-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1e90ff;
    text-decoration: none;
    font-size: 1.2rem;
    z-index: 1001;
}

.site-header .page-info {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #888;
}

/* === NAVIGATION === */
.main-nav {
    background-color: rgba(45, 45, 45, 0.95);
    padding: 10px 0;
    border-bottom: 1px solid #444;
    position: sticky;
    top: 70px;
    z-index: 999;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
    display: none;
}

.nav-links li {
    flex-shrink: 0;
    margin: 0 5px;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1.1rem;
}

.nav-link:hover {
    background-color: #1e90ff;
    color: white;
}

.nav-link.active {
    background-color: #1e90ff;
    color: white;
}

/* === HOME CONTENT === */
.home-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 10px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.couple-names {
    font-family: 'Bad Script', cursive;
    font-size: 2.2rem;
    color: #1e90ff;
    margin: 20px 0;
    font-weight: normal;
    line-height: 1.3;
}

.wedding-date {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin: 25px 0;
    padding: 12px 20px;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 10px;
    display: inline-block;
    backdrop-filter: blur(5px);
}

.welcome-message {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #ffffff;
    padding: 0 10px;
}

.wedding-placeholder {
    background: linear-gradient(135deg, #1f1f1f 0%, #2d2d2d 100%);
    height: 300px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.wedding-placeholder::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.quote {
    font-style: italic;
    font-size: 1rem;
    color: #cccccc;
    margin: 30px 0;
    padding: 15px;
    border-left: 3px solid #1e90ff;
    background: rgba(255,255,255,0.05);
    border-radius: 0 10px 10px 0;
    text-align: left;
}

.instructions {
    background: rgba(31, 31, 31, 0.8);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: left;
    backdrop-filter: blur(5px);
}

.instructions h3 {
    color: #1e90ff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.instructions ul {
    padding-left: 20px;
    margin: 0;
}

.instructions li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.heart {
    color: #ff4d4f;
    font-size: 1.5rem;
    margin: 0 5px;
}

/* === CATEGORY GRID === */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 0 10px;
}

.category-card {
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: 1px solid #333;
    padding: 25px 15px;
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    border-color: #1e90ff;
}

.category-card:active {
    transform: translateY(-2px);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #1e90ff;
}

.category-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.category-count {
    color: #888;
    font-size: 0.9rem;
}

/* === PAGE TITLES === */
.page-title {
    text-align: center;
    margin: 30px 0;
    color: #1e90ff;
    font-size: 1.5rem;
}

.page-title i {
    margin-right: 10px;
}

.gallery-title {
    text-align: center;
    margin: 30px 0;
    color: #1e90ff;
    font-size: 1.5rem;
}

.gallery-title i {
    margin-right: 10px;
}

/* === MOBILE NAVIGATION === */
.mobile-nav-bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(31, 31, 31, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #444;
    z-index: 1001;
    padding: 10px 0;
}

.mobile-nav-links {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-link {
    color: #e0e0e0;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
}

.mobile-nav-link i {
    font-size: 1.2rem;
}

.mobile-nav-link.active {
    color: #1e90ff;
}

/* === AUTH CHECK === */
.auth-check {
    display: none;
    background: #1f1f1f;
    padding: 40px 20px;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.5rem;
    }

    .site-header h1 {
        font-size: 1.4rem;
        padding: 0 40px;
    }

    .couple-names {
        font-size: 1.8rem;
    }

    .wedding-date {
        font-size: 1.3rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .main-nav {
        display: none;
    }

    .mobile-nav-bottom {
        display: block;
    }

    .main-content {
        padding-bottom: 70px;
    }

    .gallery-title {
        font-size: 1.3rem;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 1.6rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* === ANIMATIONS === */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}