@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Lora:wght@400;600&display=swap');

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

body {
    font-family: Georgia, serif;
    background: #1a1a1a;
    color: #f5deb3;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('wallpaper.jpg') repeat;
    opacity: 1;
    z-index: -1;
}

/* Menú Superior */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(62, 39, 35, 0.95);
    border-bottom: 3px solid #d47b3a;
    padding: 20px 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.top-nav ul {
    display: flex;
    justify-content: center;
    gap: 60px;
    list-style: none;
}

.top-nav a {
    font-family: 'Press Start 2P', monospace;
    font-size: 14px;
    color: #f5deb3;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.top-nav a:hover {
    color: #d47b3a;
    text-shadow: 0 0 10px #d47b3a;
}

/* Sidebar Izquierdo */
.sidebar {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 999;
}

.sidebar-icon {
    width: 80px;
    height: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.7));
}

.sidebar-icon:hover {
    transform: scale(1.15);
    filter: drop-shadow(0 0 15px #d47b3a);
}

/* Contenedor Principal */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 150px 50px 150px;
}

/* Sección Hero */
.hero {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.hero h1 {
    font-family: 'Press Start 2P', monospace;
    font-size: 32px;
    color: #f5deb3;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 123, 58, 0.3); }
    50% { text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 123, 58, 0.6); }
}

.hero-image {
    width: 100%;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

/* Marco Postal */
.postal-section {
    background: linear-gradient(135deg, #f5deb3 0%, #e8d4b0 100%);
    border: 12px solid #8b4513;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 50px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.postal-section::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    background: repeating-linear-gradient(
        45deg,
        #d47b3a,
        #d47b3a 10px,
        #8b4513 10px,
        #8b4513 20px
    );
    z-index: -1;
    border-radius: 10px;
}

.postal-header {
    font-family: 'Press Start 2P', monospace;
    font-size: 18px;
    color: #3e2723;
    margin-bottom: 25px;
    text-align: center;
}

/* Sección Radio */
.radio-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
    color: #3e2723;
}

.radio-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.now-playing {
    background: rgba(255, 255, 255, 0.7);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #8b4513;
}

.now-playing h3 {
    font-family: 'Press Start 2P', monospace;
    font-size: 12px;
    margin-bottom: 15px;
    color: #3e2723;
}

.track-info {
    font-size: 16px;
    line-height: 1.8;
}

.track-info strong {
    color: #8b4513;
}

/* Sección Estado de Ánimo */
.mood-section {
    margin-top: 30px;
    text-align: center;
}

.mood-gif {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #8b4513;
    margin-top: 15px;
}

.upload-mood {
    margin-top: 15px;
}

.upload-mood input[type="file"] {
    display: none;
}

.upload-mood label {
    display: inline-block;
    padding: 10px 20px;
    background: #8b4513;
    color: #f5deb3;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    transition: all 0.3s ease;
}

.upload-mood label:hover {
    background: #d47b3a;
    transform: scale(1.05);
}

/* Entradas Recientes */
.recent-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.post-card {
    background: linear-gradient(135deg, #f5deb3 0%, #e8d4b0 100%);
    border: 8px solid #8b4513;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-card::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: #d47b3a;
    border-radius: 50%;
    opacity: 0.3;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
    border: 2px solid #8b4513;
}

.post-date {
    font-family: 'Press Start 2P', monospace;
    font-size: 10px;
    color: #8b4513;
    margin-bottom: 10px;
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    color: #3e2723;
    margin-bottom: 10px;
}

.post-excerpt {
    color: #5a4a42;
    line-height: 1.6;
    font-size: 14px;
}

/* Sección Foro */
.forum-section {
    margin-top: 80px;
    background: rgba(62, 39, 35, 0.9);
    border: 3px solid #d47b3a;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.forum-section h2 {
    font-family: 'Press Start 2P', monospace;
    font-size: 24px;
    color: #f5deb3;
    margin-bottom: 30px;
    text-align: center;
}

.section-title {
    font-family: 'Press Start 2P', monospace;
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    color: #f5deb3;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 120px 50px 50px 120px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    
    .container {
        padding: 100px 20px 30px 20px;
    }

    .top-nav ul {
        gap: 20px;
    }

    .top-nav a {
        font-size: 10px;
    }

    .radio-section {
        grid-template-columns: 1fr;
    }
}