:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --gold-accent: #e94560;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(233, 69, 96, 0.4));
    transition: filter 0.3s;
}

.logo:hover {
    color: var(--gold-accent);
}

.logo:hover .logo-icon {
    filter: drop-shadow(0 0 12px rgba(233, 69, 96, 0.8));
}

.header-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.btn-publish,
.btn-login {
    background: var(--gold-accent);
    color: var(--white);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-publish:hover,
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.btn-logout {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

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

/* Nav Icons - Mostrar iconos y texto en desktop */
.nav-icon {
    display: none; /* Ocultar iconos en desktop */
}

.nav-text {
    display: inline; /* Mostrar texto en desktop */
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
}

.total-views {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.views-icon {
    font-size: 1rem;
}

#viewsCount {
    font-weight: 700;
    font-size: 1rem;
}

/* Main Content */
main {
    flex: 1;
    padding: 3rem 2rem;
}

/* Remover padding para páginas de post detail */
main.post-detail-container {
    padding: 0;
}

.posts-container,
.create-container {
    max-width: 1200px;
    margin: 0 auto;
}

.post-detail-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.posts-wrapper {
    max-width: 1200px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

/* Loading & Empty States */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 6rem 2rem;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--gold-accent);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    position: relative;
}

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

.pin-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
}

.post-card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card-content {
    padding: 1.5rem;
}

.post-card-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.post-card-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

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

.post-views {
    color: var(--text-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.read-more {
    color: var(--gold-accent);
    text-decoration: none;
    font-weight: 600;
}

/* Post Detail Page */
.post-detail {
    background: var(--white);
    min-height: 100vh;
}

.post-header {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
}

.post-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #eee;
}

.post-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.post-actions-btns {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-edit {
    background: var(--gold-accent);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-edit:hover {
    background: #d83850;
}

.btn-pin {
    background: var(--gold-accent);
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pin:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.btn-pin.pinned {
    background: var(--accent-color);
}

.post-media {
    width: 100%;
    margin: 2rem 0;
}

.post-media img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.post-media video {
    width: 100%;
    max-height: 600px;
    display: block;
}

.post-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-color);
    white-space: pre-wrap;
}

.post-actions {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 2px solid #eee;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
}

.btn-share:active {
    transform: translateY(0);
}

.share-icon {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.share-text {
    font-size: 1rem;
}

/* Create Form */
.create-form-wrapper {
    background: var(--white);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.create-form-wrapper h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.preview {
    margin-top: 1rem;
}

.preview img,
.preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
    border: 2px solid #ddd;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* Login Form */
.login-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.login-form-wrapper {
    background: var(--white);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.login-form-wrapper h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-form-wrapper .subtitle {
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.link-secondary {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.link-secondary:hover {
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

/* Buttons */
.btn-primary {
    background: var(--gold-accent);
    color: var(--white);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.8rem 2rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-danger {
    background: #dc3545;
    color: var(--white);
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #c82333;
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Editor de Bloques */
.editor-container {
    max-width: 900px;
    margin: 0 auto;
}

.editor-wrapper {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.editor-title {
    width: 100%;
    border: none;
    outline: none;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.editor-title::placeholder {
    color: #ccc;
}

.editor-content {
    min-height: 300px;
    margin-bottom: 2rem;
}

.editor-block {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
}

.editor-block:hover {
    border-color: var(--gold-accent);
}

.block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.block-type-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.block-delete {
    background: #dc3545;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    transition: background 0.3s;
}

.block-delete:hover {
    background: #c82333;
}

.block-textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0.8rem;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
}

.block-textarea:focus {
    outline: none;
    border-color: var(--gold-accent);
}

.block-file-input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.block-preview {
    margin-top: 1rem;
}

.block-preview img,
.block-preview video {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 5px;
    display: block;
}

.editor-toolbar {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.toolbar-btn {
    background: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.editor-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

/* Bloques de contenido renderizados */
.content-block-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

.content-block-image {
    width: 100%;
    margin: 1.5rem 0;
}

.content-block-image img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
    display: block;
    border-radius: 5px;
}

.content-block-video {
    width: 100%;
    margin: 1.5rem 0;
}

.content-block-video video {
    width: 100%;
    max-height: 600px;
    display: block;
    border-radius: 5px;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    /* Mostrar solo iconos en navegación móvil */
    .nav-icon {
        display: inline; /* Mostrar iconos en móvil */
        font-size: 1.3rem;
    }

    .nav-text {
        display: none; /* Ocultar texto en móvil */
    }

    /* Reducir padding de botones en móvil */
    .btn-publish,
    .btn-login,
    .btn-logout {
        padding: 0.5rem 0.8rem;
        min-width: auto;
    }

    .nav-link {
        padding: 0.5rem 0.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .create-form-wrapper {
        padding: 1.5rem;
    }

    .login-form-wrapper {
        padding: 2rem 1.5rem;
    }

    .login-form-wrapper h1 {
        font-size: 1.8rem;
    }

    .login-container {
        padding: 1rem 0.5rem;
    }

    .post-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .post-header h1 {
        font-size: 2rem;
    }

    .post-content {
        padding: 2rem 1.5rem;
        font-size: 1.1rem;
    }

    .post-actions {
        padding: 1.5rem;
        flex-direction: column;
        align-items: stretch;
    }

    .btn-share {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }

    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Static Pages (Sobre mí, Contacto, Privacidad, Cookies) */
.static-page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    min-height: 60vh;
}

.static-page-content {
    background: var(--white);
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.static-page-content h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    font-style: italic;
}

.page-section {
    margin-bottom: 2.5rem;
}

.page-section h2 {
    color: var(--secondary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.page-section h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin: 1.5rem 0 0.8rem;
}

.page-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.page-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-section ul li {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.contact-info {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold-accent);
}

.contact-info p {
    margin-bottom: 0.8rem;
}

.inline-link {
    color: var(--gold-accent);
    text-decoration: underline;
    transition: color 0.3s;
}

.inline-link:hover {
    color: var(--secondary-color);
}

.page-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

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

/* Cookies Banner */
.cookies-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}

.cookies-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookies-banner-text {
    flex: 1;
}

.cookies-banner-text p {
    margin: 0.3rem 0;
    line-height: 1.5;
}

.cookies-link {
    color: var(--gold-accent);
    text-decoration: underline;
    font-weight: 600;
}

.cookies-link:hover {
    color: var(--white);
}

.cookies-banner-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-accept-cookies,
.btn-reject-cookies {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-accept-cookies {
    background: var(--gold-accent);
    color: var(--white);
}

.btn-accept-cookies:hover {
    background: #d83850;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.btn-reject-cookies {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-reject-cookies:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Responsive cookies banner */
@media (max-width: 768px) {
    .cookies-banner {
        padding: 1rem;
    }

    .cookies-banner-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookies-banner-text p {
        font-size: 0.9rem;
    }

    .cookies-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-accept-cookies,
    .btn-reject-cookies {
        width: 100%;
    }

    .static-page-container {
        padding: 2rem 1rem;
    }

    .static-page-content {
        padding: 2rem 1.5rem;
    }

    .static-page-content h1 {
        font-size: 2rem;
    }

    .footer-links {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .contact-form {
        margin-top: 1rem;
    }

    .message-card {
        padding: 1.5rem;
    }

    .message-header {
        flex-direction: column;
        gap: 1rem;
    }

    .message-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.char-count {
    color: var(--text-light);
    font-weight: normal;
    font-size: 0.85rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message Alert */
.message-alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-weight: 500;
}

.message-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Messages List */
.messages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.message-card {
    background: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 2rem;
    transition: box-shadow 0.3s;
}

.message-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.message-info h3 {
    color: var(--secondary-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.message-email {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.message-email:hover {
    text-decoration: underline;
}

.message-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

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

.message-ip {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-family: 'Courier New', monospace;
}

.message-body {
    color: var(--text-color);
    line-height: 1.8;
}

.message-body p {
    margin: 0;
    white-space: pre-wrap;
}
