:root {
    --pink-100: #FFE4EC;
    --pink-200: #FFB3D1;
    --pink-300: #FF80AB;
    --pink-400: #FF4081;
    --pink-500: #FF6B9D;
    --blue-100: #E0F7FA;
    --blue-200: #B2EBF2;
    --blue-300: #4ECDC4;
    --blue-400: #26A69A;
    --orange-100: #FFF3E0;
    --orange-200: #FFE0B2;
    --orange-300: #FFCC80;
    --orange-400: #FF8C42;
    --bg-light: #FFF5F5;
    --bg-white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --shadow: 0 4px 20px rgba(255, 107, 157, 0.15);
    --shadow-hover: 0 8px 30px rgba(255, 107, 157, 0.25);
    --gradient: linear-gradient(135deg, var(--pink-400), var(--blue-300), var(--orange-400));
    --gradient-light: linear-gradient(135deg, var(--pink-100), var(--blue-100), var(--orange-100));
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Dancing Script', cursive;
    font-weight: 700;
    color: var(--pink-500);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Navbar */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand a {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand i {
    color: var(--pink-400);
    -webkit-text-fill-color: var(--pink-400);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover, .nav-links a.active {
    background: var(--gradient-light);
    color: var(--pink-500);
}

.nav-links a.logout-btn {
    background: var(--pink-100);
    color: var(--pink-400);
}

.nav-links a.logout-btn:hover {
    background: var(--pink-400);
    color: white;
}

.badge {
    background: var(--orange-400);
    color: white;
    padding: 2px 8px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--pink-500);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--pink-100);
    color: var(--pink-500);
}

.btn-secondary:hover {
    background: var(--pink-200);
}

.btn-danger {
    background: #FFE5E5;
    color: #E53935;
}

.btn-danger:hover {
    background: #E53935;
    color: white;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.85rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--pink-100);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--pink-400);
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    padding: 20px;
    background: var(--gradient-light);
    border-bottom: 1px solid var(--pink-100);
}

.card-body {
    padding: 20px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-light);
    padding: 20px;
}

.login-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-box .logo {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: heartbeat 1.5s infinite;
}

.login-box h1 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.login-box .subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
}

.login-box .form-control {
    text-align: center;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.login-box .btn {
    width: 100%;
    justify-content: center;
    padding: 15px;
    font-size: 1.1rem;
}

.login-box .register-link {
    margin-top: 20px;
    color: var(--text-light);
}

.login-box .register-link a {
    color: var(--pink-500);
    font-weight: 500;
}

.login-box .register-link a:hover {
    text-decoration: underline;
}

/* Hearts Animation */
.hearts-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    animation: floatUp 10s linear infinite;
    opacity: 0.6;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Gallery */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.gallery-header h1 {
    font-size: 2.5rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.photo-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.photo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card .photo-info {
    padding: 15px;
}

.photo-card .photo-title {
    font-family: 'Dancing Script', cursive;
    font-size: 1.3rem;
    color: var(--pink-500);
    margin-bottom: 5px;
}

.photo-card .photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

.photo-card .photo-author {
    display: flex;
    align-items: center;
    gap: 5px;
}

.photo-card .photo-author i {
    color: var(--blue-300);
}

.photo-card .photo-actions {
    padding: 10px 15px;
    border-top: 1px solid var(--pink-100);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Photo Detail */
.photo-detail {
    max-width: 900px;
    margin: 0 auto;
}

.photo-detail .main-photo {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.photo-detail .photo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px 0;
}

.photo-detail .photo-title {
    font-size: 2rem;
}

.photo-detail .photo-meta {
    color: var(--text-light);
    display: flex;
    gap: 20px;
}

/* Comments */
.comments-section {
    margin-top: 30px;
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.comment-form {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.comment-form textarea {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--pink-100);
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    resize: none;
    height: 60px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--pink-400);
}

.comment-form button {
    padding: 15px 25px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: 15px;
}

.comment-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author {
    font-weight: 600;
    color: var(--pink-500);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-dark);
    line-height: 1.5;
}

.comment-actions {
    margin-top: 8px;
}

.comment-actions button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.comment-actions button:hover {
    color: #E53935;
}

/* Upload Page */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    border: 3px dashed var(--pink-200);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-white);
}

.upload-area:hover, .upload-area.dragover {
    border-color: var(--pink-400);
    background: var(--pink-100);
}

.upload-area i {
    font-size: 4rem;
    color: var(--pink-300);
    margin-bottom: 15px;
}

.upload-area h3 {
    color: var(--pink-500);
    margin-bottom: 10px;
}

.upload-area p {
    color: var(--text-light);
}

.upload-preview {
    margin-top: 20px;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Messages */
.messages-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    height: calc(100vh - 150px);
}

.messages-sidebar {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.messages-sidebar .sidebar-header {
    padding: 20px;
    background: var(--gradient-light);
    border-bottom: 1px solid var(--pink-100);
}

.messages-sidebar .sidebar-header h3 {
    font-size: 1.3rem;
}

.message-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
    border-bottom: 1px solid var(--pink-100);
}

.message-user:hover, .message-user.active {
    background: var(--pink-100);
}

.message-user .user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.message-user .user-info h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
}

.message-user .user-info p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.chat-container {
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    background: var(--gradient-light);
    border-bottom: 1px solid var(--pink-100);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 18px;
    border-radius: 18px;
    position: relative;
}

.message-bubble.sent {
    align-self: flex-end;
    background: var(--gradient);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-bubble.received {
    align-self: flex-start;
    background: var(--pink-100);
    color: var(--text-dark);
    border-bottom-left-radius: 5px;
}

.message-bubble .message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
}

.chat-input {
    padding: 15px 20px;
    border-top: 1px solid var(--pink-100);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid var(--pink-100);
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--pink-400);
}

.chat-input button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Special Days */
.special-days-container {
    max-width: 900px;
    margin: 0 auto;
}

.days-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.day-card {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient);
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.day-card .day-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.day-card .day-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.day-card .day-date {
    color: var(--pink-500);
    font-weight: 500;
    margin-bottom: 10px;
}

.day-card .day-countdown {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--pink-500);
    font-weight: 500;
}

.day-card .day-description {
    color: var(--text-light);
    margin-top: 10px;
    font-size: 0.9rem;
}

.day-card .day-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

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

.profile-header {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 600;
    margin: 0 auto 15px;
    position: relative;
}

.profile-avatar .edit-avatar {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink-500);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.profile-header h2 {
    font-size: 2rem;
}

.profile-header p {
    color: var(--text-light);
}

.profile-section {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.profile-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--pink-100);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 4rem;
    color: var(--pink-200);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--pink-400);
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.alert-info {
    background: var(--blue-100);
    color: var(--blue-400);
    border: 1px solid var(--blue-200);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .gallery-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .photo-grid {
        grid-template-columns: 1fr;
    }

    .messages-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .messages-sidebar {
        display: none;
    }

    .messages-sidebar.active {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        border-radius: 0;
    }

    .comment-form {
        flex-direction: column;
    }

    .comment-form button {
        width: 100%;
    }

    .days-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pink-100);
}

::-webkit-scrollbar-thumb {
    background: var(--pink-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink-400);
}
