* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body { 
    font-family: 'Courier New', monospace; 
    background: #0a0e1a; 
    color: #fff; 
    overflow-x: hidden;
}

.stars-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: radial-gradient(2px 2px at 20% 30%, white, transparent),
                radial-gradient(2px 2px at 60% 70%, white, transparent),
                radial-gradient(1px 1px at 50% 50%, white, transparent),
                radial-gradient(1px 1px at 80% 10%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.mars-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 74, 0.3), transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: pulse 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.5; }
}

/* NAVIGATION - RESPONSIVE */
nav { 
    background: rgba(20, 25, 40, 0.95); 
    padding: 1rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #1a1f35; 
    position: sticky; 
    top: 0; 
    z-index: 100;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(255, 107, 74, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 1.3rem; 
    font-weight: bold; 
    background: linear-gradient(45deg, #ff6b4a, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    filter: drop-shadow(0 0 10px rgba(255, 107, 74, 0.5));
}

.logo-icon { 
    width: 35px; 
    height: 35px; 
    border: 2px solid #ff6b4a; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    animation: rotate 10s linear infinite;
    box-shadow: 0 0 20px rgba(255, 107, 74, 0.5);
    font-size: 1.2rem;
}

@keyframes rotate { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

.nav-links { 
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
    position: relative; 
    z-index: 10; 
    flex-wrap: wrap;
}

.nav-links a { 
    color: #8892b0; 
    text-decoration: none; 
    font-size: 0.85rem; 
    cursor: pointer; 
    transition: all 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active { 
    color: #ff6b4a;
    text-shadow: 0 0 10px rgba(255, 107, 74, 0.5);
}

.btn-login, .btn-signup { 
    padding: 0.5rem 1.3rem; 
    border: none; 
    border-radius: 6px; 
    cursor: pointer; 
    font-family: inherit; 
    font-size: 0.85rem;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-login { 
    background: linear-gradient(135deg, #ff6b4a, #ff5533);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.4);
}

.btn-login:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 74, 0.6);
}

.btn-signup { 
    background: transparent; 
    color: #8892b0; 
    border: 2px solid #8892b0; 
}

.btn-signup:hover { 
    border-color: #ff6b4a; 
    color: #ff6b4a;
    box-shadow: 0 0 15px rgba(255, 107, 74, 0.3);
}

.auth-buttons { 
    display: flex; 
    gap: 0.8rem; 
}

.user-info { 
    display: none; 
    align-items: center; 
    gap: 0.8rem; 
    flex-wrap: wrap;
}

.user-info.active { 
    display: flex; 
}

.user-avatar { 
    width: 35px; 
    height: 35px; 
    border-radius: 50%; 
    background: linear-gradient(135deg, #ff6b4a, #4ade80); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-weight: bold;
    box-shadow: 0 0 20px rgba(255, 107, 74, 0.5);
    animation: glow 2s ease-in-out infinite;
    font-size: 0.9rem;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 74, 0.5); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 74, 0.8), 0 0 40px rgba(74, 222, 128, 0.5); }
}

.btn-logout { 
    background: transparent; 
    border: 2px solid #8892b0; 
    color: #8892b0; 
    padding: 0.4rem 1rem; 
    border-radius: 6px; 
    cursor: pointer; 
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-logout:hover { 
    border-color: #ff6b4a; 
    color: #ff6b4a;
}

/* HERO - RESPONSIVE */
.hero { 
    text-align: center; 
    padding: 3rem 1.5rem; 
    border-bottom: 1px solid #1a1f35;
    background: linear-gradient(180deg, rgba(255, 107, 74, 0.05) 0%, transparent 100%);
    position: relative;
    z-index: 1;
}

.hero h1 { 
    font-size: 2rem; 
    margin-bottom: 1rem; 
    background: linear-gradient(45deg, #ccd6f6, #ff6b4a, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% auto;
    line-height: 1.3;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero p { 
    color: #8892b0; 
    max-width: 900px; 
    margin: 0 auto; 
    line-height: 1.6; 
    font-size: 0.95rem;
}

/* CONTAINER - RESPONSIVE */
.container { 
    max-width: 1600px; 
    margin: 0 auto; 
    padding: 1.5rem; 
    position: relative; 
    z-index: 1;
}

.content-section { 
    display: none; 
}

.content-section.active { 
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.grid-layout { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1.5rem; 
}

/* CARDS - RESPONSIVE */
.card { 
    background: rgba(30, 35, 50, 0.7); 
    border: 1px solid rgba(255, 107, 74, 0.2); 
    border-radius: 12px; 
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    transition: all 0.4s;
}

.card:hover { 
    border-color: rgba(255, 107, 74, 0.5);
    box-shadow: 0 8px 32px rgba(255, 107, 74, 0.2);
}

.card h2 { 
    color: #ff6b4a; 
    font-size: 1.1rem; 
    margin-bottom: 1.5rem; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 107, 74, 0.3);
    line-height: 1.4;
}

/* STATS GRID - RESPONSIVE */
.stats-grid { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 1rem; 
    margin-bottom: 2rem; 
}

.stat-box { 
    background: rgba(20, 25, 40, 0.9); 
    padding: 1.2rem; 
    border-radius: 10px; 
    border-left: 4px solid #4ade80;
    cursor: pointer;
    transition: all 0.3s;
}

.stat-box:hover { 
    transform: translateX(5px);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
}

.stat-box.red { 
    border-left-color: #ff6b4a; 
}

.stat-box.orange { 
    border-left-color: #ff9933; 
}

.stat-value { 
    font-size: 1.8rem; 
    font-weight: bold; 
    color: #ccd6f6; 
    display: flex; 
    align-items: center; 
    gap: 0.5rem;
}

.stat-label { 
    color: #8892b0; 
    font-size: 0.85rem; 
    margin-top: 0.7rem;
}

/* CHARTS - RESPONSIVE */
.chart-container { 
    position: relative; 
    height: 250px; 
    margin-top: 1rem;
}

.pie-chart-container { 
    position: relative; 
    height: 300px; 
    margin-top: 1rem; 
}

/* HEART BUTTON */
.heart-btn { 
    background: none; 
    border: none; 
    font-size: 3rem; 
    cursor: pointer; 
    filter: grayscale(100%);
    transition: all 0.3s;
}

.heart-btn.liked { 
    filter: grayscale(0%);
    animation: heartBeat 0.5s;
}

@keyframes heartBeat { 
    0%, 100% { transform: scale(1); } 
    50% { transform: scale(1.3); }
}

.like-counter { 
    text-align: center; 
    font-size: 2rem; 
    background: linear-gradient(45deg, #ff6b4a, #ff5533);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1rem 0;
    font-weight: bold;
}

/* BUTTONS - RESPONSIVE */
.btn-view, .btn-contribute { 
    width: 100%; 
    padding: 0.9rem; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-family: inherit; 
    font-size: 0.95rem; 
    margin-bottom: 1rem;
    transition: all 0.3s;
    font-weight: bold;
}

.btn-view { 
    background: transparent; 
    border: 2px solid #ff6b4a; 
    color: #ff6b4a;
}

.btn-view:hover {
    background: rgba(255, 107, 74, 0.1);
    transform: translateY(-2px);
}

.btn-contribute { 
    background: linear-gradient(135deg, #ff6b4a, #ff5533);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.4);
}

.btn-contribute:hover { 
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 107, 74, 0.6);
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #4ade80;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* MODAL - RESPONSIVE */
.modal { 
    display: none; 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0, 0, 0, 0.95); 
    z-index: 1000; 
    justify-content: center; 
    align-items: center;
    padding: 1rem;
}

.modal.active { 
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content { 
    background: rgba(30, 35, 50, 0.98); 
    padding: 2rem; 
    border-radius: 16px; 
    max-width: 500px; 
    width: 100%; 
    border: 1px solid rgba(255, 107, 74, 0.3);
    max-height: 90vh; 
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(255, 107, 74, 0.3);
}

.modal h3 { 
    color: #ff6b4a; 
    margin-bottom: 1.5rem; 
    font-size: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 107, 74, 0.5);
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label { 
    display: block; 
    color: #8892b0; 
    margin-bottom: 0.7rem; 
    font-size: 0.9rem;
    font-weight: bold;
}

.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 0.9rem; 
    background: rgba(20, 25, 40, 0.9); 
    border: 2px solid rgba(255, 107, 74, 0.2); 
    border-radius: 8px; 
    color: #ccd6f6; 
    font-family: inherit;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.form-group input:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: #ff6b4a;
    box-shadow: 0 0 15px rgba(255, 107, 74, 0.3);
}

.form-group textarea { 
    min-height: 120px; 
    resize: vertical; 
}

.modal-buttons { 
    display: flex; 
    gap: 1rem; 
    justify-content: flex-end; 
    flex-wrap: wrap;
}

.btn-close { 
    background: transparent; 
    border: 2px solid #8892b0; 
    color: #8892b0; 
    padding: 0.8rem 1.5rem; 
    border-radius: 8px; 
    cursor: pointer; 
    font-family: inherit;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-submit { 
    background: linear-gradient(135deg, #ff6b4a, #ff5533);
    color: white; 
    padding: 0.8rem 1.5rem; 
    border: none; 
    border-radius: 8px; 
    cursor: pointer; 
    font-family: inherit;
    box-shadow: 0 4px 15px rgba(255, 107, 74, 0.4);
    font-size: 0.9rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

/* NOTIFICATION - RESPONSIVE */
.notification { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    left: 20px;
    max-width: 400px;
    margin-left: auto;
    background: rgba(30, 35, 50, 0.98); 
    border: 1px solid #4ade80; 
    border-left: 4px solid #4ade80; 
    padding: 1rem 1.5rem; 
    border-radius: 10px; 
    color: #ccd6f6; 
    z-index: 2000; 
    display: none;
    box-shadow: 0 8px 32px rgba(74, 222, 128, 0.4);
    font-size: 0.9rem;
}

.notification.show { 
    display: block; 
    animation: slideIn 0.4s;
}

@keyframes slideIn { 
    from { transform: translateX(100%); opacity: 0; } 
    to { transform: translateX(0); opacity: 1; } 
}

.idea-card { 
    background: rgba(20, 25, 40, 0.9); 
    padding: 1.5rem; 
    border-radius: 10px; 
    margin-bottom: 1rem; 
    border-left: 4px solid #4ade80;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background: linear-gradient(135deg, #4ade80, #3b82f6);
    color: white;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: 0.5rem;
    box-shadow: 0 2px 10px rgba(74, 222, 128, 0.4);
}

/* ========================================= */
/* RESPONSIVE BREAKPOINTS */
/* ========================================= */

/* Small phones (320px - 480px) */
@media (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .nav-links {
        gap: 0.8rem;
    }
    
    .nav-links a {
        font-size: 0.75rem;
    }
    
    .btn-login, .btn-signup {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.85rem;
    }
    
    .card h2 {
        font-size: 0.95rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .heart-btn {
        font-size: 2.5rem;
    }
    
    .like-counter {
        font-size: 1.5rem;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .pie-chart-container {
        height: 250px;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
    
    .modal h3 {
        font-size: 1.3rem;
    }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* Small laptops/tablets landscape (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Desktops (1025px and above) */
@media (min-width: 1025px) {
    nav {
        padding: 1rem 2rem;
    }
    
    .grid-layout {
        grid-template-columns: 2fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 4rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 2rem;
    }
    
    .card h2 {
        font-size: 1.3rem;
    }
    
    .chart-container {
        height: 300px;
    }
    
    .pie-chart-container {
        height: 350px;
    }
    
    .container {
        padding: 2rem;
    }
    
    .notification {
        top: 100px;
        right: 20px;
        left: auto;
    }
}

/* Large desktops (1440px and above) */
@media (min-width: 1440px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}
