@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
}

/* Handwritten style for page titles */
.page-title {
    font-family: 'Caveat', cursive;
    font-weight: 600;
    font-size: 3.5rem;
}

/* Full Screen Container */
.fullscreen-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Background Media (Image or Video) */
.background-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

video.background-media {
    object-fit: cover;
}

/* Overlay */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    z-index: 1;
}

/* Quote Container */
.quote-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    padding: 20px;
    max-width: 80%;
}

.quote-text {
    font-size: clamp(1.5rem, 4vw, 3rem);
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-style: italic;
}

/* Side Navigation Menu */
.side-menu {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 100;
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu li {
    margin: 20px 0;
    text-align: right;
}

.side-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.side-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

/* Black menu text for quotes and about pages */
.quotes-page .side-menu a,
.content-page .side-menu a {
    color: #000000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.quotes-page .side-menu a:hover,
.content-page .side-menu a:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: #2e7d32;
}


/* Quotes Archive Page */
.quotes-page {
    min-height: 100vh;
    padding: 80px 40px;
    background: linear-gradient(to right, #ffffff 0%, #e6e6e6 100%);
}

.quotes-header {
    text-align: center;
    color: #333;
    margin-bottom: 50px;
}

.quotes-header h1 {
    font-family: 'Caveat', cursive;
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2e7d32;
}

.quotes-header p {
    color: #666;
}

.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.quote-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-5px);
}

.quote-card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.quote-card-content {
    padding: 25px;
}

.quote-card-text {
    font-size: 1.1rem;
    color: #333;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
}

.quote-card-date {
    color: #888;
    font-size: 0.9rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #667eea;
    color: white;
}

.pagination .current {
    background: #667eea;
    color: white;
}

/* Admin Panel */
.admin-container {
    min-height: 100vh;
    padding: 40px;
    background: #f5f5f5;
}

.admin-panel {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-panel h1 {
    color: #2e7d32;
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input[type="text"],
.form-group input[type="color"],
.form-group input[type="file"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.btn-submit {
    background: #667eea;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background: #5568d3;
}

.color-preview {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    margin-left: 10px;
    vertical-align: middle;
    border: 2px solid #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .side-menu {
        right: 15px;
    }

    .side-menu a {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .quote-container {
        max-width: 90%;
    }

    .quote-text {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }

    .quotes-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .admin-panel {
        padding: 20px;
    }

    .quotes-page {
        padding: 60px 20px;
    }

    .quotes-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .side-menu {
        right: 10px;
    }

    .side-menu a {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    .side-menu li {
        margin: 15px 0;
    }
}

/* About & Blog Pages */
.content-page {
    min-height: 100vh;
    padding: 80px 40px;
    background: linear-gradient(to right, #ffffff 0%, #e6e6e6 100%);
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 0px;
    padding: 50px 20px;
    box-shadow: none;
}

.content-container h1 {
    font-family: 'Caveat', cursive;
    color: #2e7d32;
    margin-bottom: 30px;
    font-size: 4rem;
    font-weight: 600;
}

.content-container p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .content-container {
        padding: 30px 20px;
    }

    .content-container h1 {
        font-size: 3rem;
    }
}

/* Login Page Styles */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    padding: 20px;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 100%;
}

.login-box h1 {
    color: #2e7d32;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
    font-size: 1rem;
}

.login-form {
    margin-bottom: 25px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.login-form input:focus {
    outline: none;
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-login:hover {
    background: #1b5e20;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-link {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #2e7d32;
}

.alert {
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

/* Add logout button to admin panel */
.admin-panel .logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #e53935;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.admin-panel .logout-btn:hover {
    background: #c62828;
}

.admin-panel {
    position: relative;
}

/* Responsive Login */
@media (max-width: 480px) {
    .login-box {
        padding: 40px 25px;
    }

    .login-box h1 {
        font-size: 2rem;
    }
}
