/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --background: #C1E1C1;
    --foreground: #081108;
    --card: #C1E1C1;
    --card-foreground: #081108;
    --primary: #6E856E;
    --primary-foreground: #ffffff;
    --secondary: #ffffff;
    --secondary-foreground: #ffffff;
    --muted: #ffffff;
    --muted-foreground: #53AC53;
    --accent: #ffffff;
    --accent-foreground: #ffffff;
    --border: #ffffff;
    
    /* Typography */
    --font-size: 14px;
    --font-comic: 'Comic Sans MS', cursive, sans-serif;
    --font-pixel: 'Courier New', monospace;
    
    /* Layout */
    --radius: 0.375rem;
    --container-width: 1200px;
}

html {
    font-size: var(--font-size);
}

body {
    font-family: var(--font-comic);
    background: var(--background);
    color: var(--foreground);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(238, 247, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(238, 247, 238, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    line-height: 1.5;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Animations */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes rainbow {
    0% { color: #356E35; }
    50% { color: #53AC53; }
    100% { color: #356E35; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.blink {
    animation: blink 1s infinite;
}

.rainbow-text {
    animation: rainbow 3s infinite;
    font-weight: bold;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Header Styles */
.header {
    background: var(--card);
    border-bottom: 4px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 50;
    border-image: linear-gradient(45deg, #ff69b4, #87ceeb, #98fb98, #f0e68c) 1;
}

.header-banner {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(110, 133, 110, 0.2), rgba(255, 255, 255, 0.2));
    border-radius: 0.5rem;
    border: 2px solid var(--primary);
    margin-bottom: 1.5rem;
}

.header-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.header-heart {
    font-size: 2rem;
    color: var(--primary);
}

.header-title {
    font-size: 2.5rem;
    font-family: var(--font-comic);
    margin: 0;
}

.header-subtitle {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
}

.header-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.875rem;
}

.stat-box {
    background: var(--secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--primary);
    font-family: var(--font-pixel);
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: all 0.2s;
    font-size: 0.875rem;
}

.nav-home { background: linear-gradient(to right, #ffc0cb, #dda0dd); }
.nav-guides { background: linear-gradient(to right, #add8e6, #87ceeb); }
.nav-logs { background: linear-gradient(to right, #90ee90, #32cd32); }
.nav-updates { background: linear-gradient(to right, #dda0dd, #ffc0cb); }
.nav-devices { background: linear-gradient(to right, #ffb347, #ffa500); }

.nav-button:hover {
    transform: scale(1.05);
}

.construction-notice {
    text-align: center;
    margin-top: 1rem;
}

.construction-notice .construction-text {
    background: #ffeb3b;
    border: 2px solid #f57f17;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius);
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: #f57f17;
}

.construction-star {
    color: #f57f17;
    margin: 0 0.5rem;
}

/* Now Playing Banner */
.now-playing {
    background: linear-gradient(to right, #9c27b0, #e91e63, #f44336);
    color: white;
    padding: 0.5rem 0;
}

.now-playing-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.now-playing-text {
    font-family: var(--font-pixel);
}

.music-note {
    font-size: 1rem;
}

/* Main Content Layout */
.main-content {
    padding: 2rem 0;
}

.content-layout {
    display: flex;
    gap: 2rem;
}

.main-area {
    flex: 1;
}

/* Search Section */
.search-section {
    margin-bottom: 2rem;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-input-container {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    font-family: var(--font-pixel);
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.search-input:focus {
    outline: none;
    background: white;
}

.new-post-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #ff69b4, #9c27b0);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
    font-family: var(--font-comic);
}

.new-post-btn:hover {
    transform: scale(1.05);
}

.search-suggestions {
    background: linear-gradient(to right, #fff9c4, #ffcdd2);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.suggestions-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.suggestions-title {
    font-weight: bold;
    font-family: var(--font-comic);
    font-size: 0.875rem;
}

.sparkle {
    color: var(--primary);
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.suggestion-tag {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-tag:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(to right, #f8bbd9, #e1bee7, #bbdefb);
    border: 4px solid var(--primary);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-image: linear-gradient(45deg, #ff69b4, #87ceeb, #98fb98, #f0e68c) 1;
}

.welcome-header {
    text-align: center;
    margin-bottom: 1rem;
}

.welcome-title {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.welcome-emojis {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.welcome-intro {
    text-align: center;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.welcome-details {
    background: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: var(--radius);
    border: 2px solid var(--accent);
}

.welcome-description {
    text-align: center;
    margin-bottom: 1rem;
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.welcome-card {
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid;
}

.welcome-find {
    background: #e3f2fd;
    border-color: #1976d2;
}

.welcome-pets {
    background: #fce4ec;
    border-color: #c2185b;
}

.welcome-card h3 {
    font-weight: bold;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.welcome-card ul {
    font-size: 0.875rem;
    list-style: none;
}

.welcome-card li {
    margin-bottom: 0.25rem;
}

.welcome-footer {
    text-align: center;
}

.contact-info {
    background: #fff9c4;
    border: 2px solid #fbc02d;
    padding: 1rem;
    border-radius: var(--radius);
}

.contact-info p:first-child {
    font-family: var(--font-pixel);
    font-size: 0.875rem;
}

.last-update {
    font-size: 0.75rem;
    color: #f57f17;
    margin-top: 0.25rem;
    font-family: var(--font-pixel);
}

/* Date and Mood */
.date-mood {
    text-align: center;
    margin-bottom: 1.5rem;
}

.date-mood-content {
    display: inline-block;
    background: linear-gradient(to right, #fff9c4, #ffcc80);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
}

.current-date, .site-mood {
    font-family: var(--font-pixel);
    margin: 0.25rem 0;
}

.current-date {
    font-size: 0.875rem;
}

.site-mood {
    font-size: 0.75rem;
}

/* Adventures Header */
.adventures-header {
    text-align: center;
    margin-bottom: 1rem;
}

.adventures-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.star-container {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.star {
    color: #fbc02d;
    font-size: 1rem;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.blog-post {
    border: 4px solid;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s;
    background: linear-gradient(to bottom right, var(--card), rgba(255, 255, 255, 0.8));
}

.blog-post:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.blog-post.guides {
    border-color: #1976d2;
    background: linear-gradient(to bottom right, #e3f2fd, #bbdefb);
}

.blog-post.logs {
    border-color: #388e3c;
    background: linear-gradient(to bottom right, #e8f5e8, #c8e6c9);
}

.blog-post.life-updates {
    border-color: #7b1fa2;
    background: linear-gradient(to bottom right, #f3e5f5, #e1bee7);
}

.blog-post.device-catalog {
    border-color: #f57c00;
    background: linear-gradient(to bottom right, #fff3e0, #ffcc80);
}

.post-image {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 4px solid;
    border-color: inherit;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}

.blog-post:hover .post-image img {
    transform: scale(1.1);
}

.post-content {
    padding: 1rem;
}

.post-header {
    margin-bottom: 0.75rem;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    font-weight: bold;
    border: 2px solid;
    margin-bottom: 0.5rem;
}

.guides-category {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

.logs-category {
    background: #e8f5e8;
    color: #388e3c;
    border-color: #388e3c;
}

.updates-category {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #7b1fa2;
}

.device-category {
    background: #fff3e0;
    color: #f57c00;
    border-color: #f57c00;
}

.post-title {
    font-family: var(--font-comic);
    font-weight: bold;
    font-size: 1.125rem;
    line-height: 1.4;
    margin: 0;
}

.post-excerpt {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid;
    border-color: inherit;
    font-size: 0.875rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted-foreground);
}

.post-author, .post-date {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
}

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

.post-likes, .post-comments {
    background: rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    border: 1px solid;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
}

.post-likes {
    border-color: #e57373;
    color: #d32f2f;
}

.post-comments {
    border-color: #64b5f6;
    color: #1976d2;
}

/* Load More Button */
.load-more {
    text-align: center;
}

.load-more-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, #c8e6c9, #81c784);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    font-family: var(--font-pixel);
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.load-more-btn:hover {
    transform: scale(1.05);
}

/* Sidebar */
.sidebar {
    width: 320px;
    flex-shrink: 0;
}

.sidebar-card {
    background: var(--card);
    border: 2px solid var(--primary);
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.profile-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-content {
    padding: 1rem;
}

/* Personal Info Card */
.personal-info {
    background: linear-gradient(to bottom right, #f8bbd9, #f3e5f5);
}

.personal-info .card-content {
    text-align: center;
    font-size: 0.875rem;
}

.personal-info .card-content p {
    margin-bottom: 0.5rem;
}

.contact-note {
    background: #fff9c4;
    border: 1px solid #fbc02d;
    border-radius: var(--radius);
    padding: 0.5rem;
    margin-top: 0.75rem;
}

.contact-note p {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    margin: 0;
}

/* Categories Card */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.category-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-link {
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.category-link:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.category-count {
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    border: 1px solid;
}

.guides-badge {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #1976d2;
}

.logs-badge {
    background: #e8f5e8;
    color: #388e3c;
    border-color: #388e3c;
}

.updates-badge {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #7b1fa2;
}

.device-badge {
    background: #fff3e0;
    color: #f57c00;
    border-color: #f57c00;
}

/* Favorite Links Card */
.favorite-links {
    background: linear-gradient(to bottom right, #e1f5fe, #b3e5fc);
}

.link-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.favorite-link {
    text-decoration: none;
    color: var(--foreground);
    font-size: 0.875rem;
    padding: 0;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.favorite-link:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.link-suggestion {
    background: #e3f2fd;
    border: 1px solid #1976d2;
    border-radius: var(--radius);
    padding: 0.5rem;
    text-align: center;
}

.link-suggestion p {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    margin: 0;
}

/* Fun Stats Card */
.fun-stats {
    background: linear-gradient(to bottom right, #e8f5e8, #c8e6c9);
}

.stats-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
}

.stat-value {
    font-family: var(--font-pixel);
    font-weight: bold;
}

/* Webring Card */
.webring {
    background: linear-gradient(to bottom right, #fff3e0, #ffcc80);
}

.webring-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.webring-btn {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: transform 0.2s;
    font-family: var(--font-comic);
}

.webring-btn:hover {
    transform: scale(1.05);
}

.webring-member {
    text-align: center;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
}

.webring-star {
    color: var(--primary);
}

/* Footer */
.footer {
    background: linear-gradient(to right, #f8bbd9, #e1bee7, #bbdefb);
    border-top: 4px solid var(--primary);
    margin-top: 4rem;
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
}

.footer-thanks {
    margin-bottom: 1rem;
}

.thanks-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-star {
    font-size: 1.5rem;
}

.thanks-title {
    font-family: var(--font-comic);
    font-size: 1.5rem;
    margin: 0;
}

.thanks-message {
    font-family: var(--font-pixel);
    color: var(--muted-foreground);
}

.footer-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-badge {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 0.25rem 0.75rem;
}

.footer-badge span {
    font-family: var(--font-pixel);
    font-size: 0.75rem;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    font-family: var(--font-pixel);
    margin-bottom: 0.5rem;
}

.footer-final {
    margin-top: 0.5rem;
}

.webring-badge {
    background: #fff9c4;
    border: 1px solid #fbc02d;
    border-radius: var(--radius);
    padding: 0.25rem 0.5rem;
    font-family: var(--font-pixel);
    font-size: 0.75rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        display: none;
    }
    
    .content-layout {
        display: block;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-title {
        font-size: 2rem;
    }
    
    .header-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .navigation {
        gap: 0.5rem;
    }
    
    .nav-button {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
    }
    
    .search-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-posts {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .footer-badges {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .adventures-title {
        font-size: 1.25rem;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .suggestion-tags {
        justify-content: center;
    }
}