/* ============================================
   RESET Y FUENTES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive;
    background: linear-gradient(135deg, #ffb3d9 0%, #c9f0ff 30%, #fff5b3 60%, #ffb3d9 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    color: #333;
    padding: 10px;
    min-height: 100vh;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   HEADER BANNER
   ============================================ */
.header-banner {
    text-align: center;
    background: linear-gradient(90deg, #ff69b4, #ffb3d9, #c9f0ff, #fff5b3, #ffb3d9, #ff69b4);
    background-size: 200% 100%;
    animation: slideGradient 5s linear infinite;
    border: 5px double #ff1493;
    border-radius: 25px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
    position: relative;
}

@keyframes slideGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.header-banner h1 {
    font-size: 2.5em;
    color: #ff1493;
    text-shadow: 3px 3px 0 #ffb3d9, 5px 5px 0 #c9f0ff;
    animation: bounce 2s infinite;
    margin-bottom: 10px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tagline {
    font-size: 1.2em;
    color: #9370db;
    font-style: italic;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 15px;
}

/* ============================================
   WIDGETS GENERALES
   ============================================ */
.widget {
    background: rgba(255, 255, 255, 0.95);
    border: 4px solid #ff69b4;
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 105, 180, 0.5);
}

.widget-header {
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid #ff1493;
}

/* ============================================
   SIDEBAR IZQUIERDA
   ============================================ */
.sidebar-left {
    display: flex;
    flex-direction: column;
}

/* Profile Card */
.profile-card {
    background: linear-gradient(180deg, #fff0f5, #fffacd);
}

.profile-image {
    text-align: center;
    margin-bottom: 15px;
}

.placeholder-img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffb3d9, #c9f0ff);
    border: 4px solid #ff69b4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
}

.profile-info p {
    margin: 8px 0;
    padding: 8px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ff69b4;
}

/* Navigation */
.nav-list {
    list-style: none;
}

.nav-list li {
    margin: 8px 0;
}

.nav-list a {
    display: block;
    padding: 12px;
    background: linear-gradient(90deg, #fff5f7, #fffacd);
    border: 3px solid #ffb3d9;
    border-radius: 12px;
    text-decoration: none;
    color: #ff1493;
    font-weight: bold;
    transition: all 0.3s;
    position: relative;
}

.nav-list a::before {
    content: "✨ ";
}

.nav-list a:hover {
    background: linear-gradient(90deg, #ffb3d9, #c9f0ff);
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.4);
}

/* Web Clique */
.button-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.web-button {
    padding: 10px;
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #c71585;
    transition: all 0.3s;
}

.web-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
}

/* Music Player */
.music-info {
    text-align: center;
}

.song-title {
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 5px;
}

.artist {
    font-size: 0.9em;
    color: #9370db;
    margin-bottom: 15px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.controls button {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
}

.controls button:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    min-height: 600px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-box {
    background: rgba(255, 255, 255, 0.95);
    border: 4px dashed #ff69b4;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.3);
}

.section-title {
    color: #ff1493;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px dotted #ff69b4;
    text-shadow: 2px 2px #ffb3d9;
}

.content-box h3 {
    color: #c71585;
    margin: 20px 0 10px;
    font-size: 1.3em;
}

/* Welcome Section */
.welcome-message {
    background: linear-gradient(135deg, #fff0f5, #fffacd);
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #ffb3d9;
    margin-bottom: 20px;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.info-box {
    background: white;
    border: 3px solid #ff69b4;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.info-box:hover {
    transform: rotate(-3deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.4);
}

.info-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Updates */
.updates-list {
    background: #fffacd;
    border: 3px solid #ffd700;
    border-radius: 15px;
    padding: 15px;
}

.update-entry {
    background: white;
    border-left: 5px solid #ff69b4;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
}

.update-date {
    color: #9370db;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

/* Reading Progress */
.current-reading {
    background: linear-gradient(135deg, #fff0f5, #fffacd);
    padding: 15px;
    border-radius: 12px;
    border: 3px solid #ffb3d9;
    margin-bottom: 20px;
}

.progress-bar {
    display: block;
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 15px;
    margin-top: 10px;
    overflow: hidden;
    border: 2px solid #ff69b4;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    border-radius: 15px;
    text-align: center;
    color: white;
    line-height: 25px;
    font-weight: bold;
    transition: width 0.5s;
}

/* Lists */
.favorites-list {
    list-style: none;
    background: linear-gradient(135deg, #fff0f5, #fffacd);
    padding: 15px;
    border-radius: 12px;
    border: 3px solid #ffb3d9;
}

.favorites-list li {
    padding: 10px;
    margin: 8px 0;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #ff69b4;
    transition: transform 0.3s;
}

.favorites-list li:hover {
    transform: translateX(10px);
    background: #fff5f7;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    border: 2px solid #c71585;
    transition: all 0.3s;
    cursor: pointer;
}

.tag:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.5);
}

/* Game/Dino Cards */
.game-card, .dino-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.game-card, .dino-card {
    background: white;
    border: 3px solid #ffb3d9;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s;
}

.dino-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.dino-emoji {
    font-size: 3em;
    margin-bottom: 10px;
}

/* Language Levels */
.language-levels {
    margin-top: 15px;
}

.language {
    background: white;
    padding: 15px;
    margin: 12px 0;
    border-radius: 12px;
    border: 3px solid #ffb3d9;
}

.flag {
    font-size: 1.5em;
    margin-right: 10px;
}

.level-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
    border: 2px solid #ff69b4;
}

.level-bar div {
    height: 100%;
    background: linear-gradient(90deg, #ff69b4, #ff1493);
    border-radius: 10px;
    transition: width 1s ease-out;
}

.level-label {
    font-size: 0.9em;
    color: #9370db;
    font-weight: bold;
}

/* Astro Info */
.astro-info {
    background: linear-gradient(135deg, #fff0f5, #e6f3ff);
    padding: 20px;
    border-radius: 15px;
    border: 3px solid #ffb3d9;
}

.astro-info p {
    margin: 12px 0;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #9370db;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ffb3d9, #c9f0ff);
    border: 3px solid #ff69b4;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 105, 180, 0.5);
}

/* ============================================
   SIDEBAR DERECHA
   ============================================ */
.sidebar-right {
    display: flex;
    flex-direction: column;
}

/* Calendar */
.calendar-widget {
    background: linear-gradient(180deg, #fff0f5, #fffacd);
}

#calendar {
    font-size: 0.85em;
}

.calendar-header {
    text-align: center;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    background: white;
    border: 2px solid #ffb3d9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-day:hover {
    background: #ff69b4;
    color: white;
    transform: scale(1.1);
}

.calendar-day.today {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    font-weight: bold;
}

.calendar-weekday {
    text-align: center;
    font-weight: bold;
    color: #9370db;
    padding: 5px;
}

/* Status Box */
.status-content {
    text-align: center;
}

.status-mood {
    font-size: 2em;
    margin-bottom: 10px;
}

.status-text {
    font-style: italic;
    color: #ff1493;
    background: #fff0f5;
    padding: 10px;
    border-radius: 10px;
    margin: 10px 0;
}

.status-time {
    font-size: 0.8em;
    color: #9370db;
}

/* Visitor Counter */
.counter-display {
    text-align: center;
    padding: 20px;
}

.counter-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #ff1493;
    background: linear-gradient(90deg, #ffb3d9, #c9f0ff);
    padding: 15px 25px;
    border-radius: 15px;
    border: 3px solid #ff69b4;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

/* Friends Online */
.friends-list {
    list-style: none;
}

.friends-list li {
    padding: 10px;
    margin: 8px 0;
    background: #fff0f5;
    border-radius: 8px;
    border-left: 4px solid #ff69b4;
}

.online-dot, .offline-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.online-dot {
    background: #00ff00;
    box-shadow: 0 0 8px #00ff00;
}

.offline-dot {
    background: #999;
}

/* Mood Ring */
.mood-display {
    text-align: center;
    padding: 20px;
}

.mood-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff69b4, #9370db);
    border: 4px solid #ff1493;
    cursor: pointer;
    transition: all 0.5s;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
}

.mood-circle:hover {
    transform: scale(1.2) rotate(360deg);
}

#moodText {
    font-size: 0.9em;
    color: #9370db;
    font-style: italic;
}

/* Playlist */
.playlist {
    list-style: none;
    font-size: 0.9em;
}

.playlist li {
    padding: 8px;
    margin: 6px 0;
    background: #fff0f5;
    border-radius: 6px;
    border-left: 3px solid #ff69b4;
    cursor: pointer;
    transition: all 0.3s;
}

.playlist li:hover {
    background: linear-gradient(90deg, #ffb3d9, #c9f0ff);
    transform: translateX(5px);
}

/* Quote Widget */
.quote-content {
    text-align: center;
}

.quote-text {
    font-style: italic;
    color: #9370db;
    background: #fff0f5;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #ff69b4;
}

.quote-content button {
    background: linear-gradient(135deg, #ff69b4, #ff1493);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    transition: all 0.3s;
}

.quote-content button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.5);
}

/* Weather */
.weather-display {
    text-align: center;
    padding: 15px;
}

.weather-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.temperature {
    font-size: 2em;
    font-weight: bold;
    color: #ff1493;
    margin: 10px 0;
}

.weather-desc {
    color: #9370db;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    text-align: center;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(90deg, #ffb3d9, #c9f0ff, #fff5b3);
    border: 4px double #ff69b4;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.footer p {
    margin: 8px 0;
    color: #ff1493;
    font-weight: bold;
}

.footer-note {
    font-size: 0.9em;
    font-style: italic;
    color: #9370db;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 250px 1fr;
    }
    
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left {
        display: none;
    }
    
    .header-banner h1 {
        font-size: 1.8em;
    }
    
    .section-title {
        font-size: 1.5em;
    }
}