/* ============================================
   Eco-Tracker - Κύρια Στυλ
   Έκδοση 2.0 - Βελτιωμένη εμφάνιση
   ============================================ */

/* ---------- Γενικά ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0e8 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Header ---------- */
header {
    background: linear-gradient(135deg, #1a4731 0%, #2e7d32 100%);
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

nav ul li a.active {
    background: #ffc107;
    color: #1a4731;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-login {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login:hover {
    background: white;
    color: #1a4731;
}

.logout-btn {
    background: #d32f2f;
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

.welcome-user {
    font-size: 14px;
    opacity: 0.9;
}

.language-dropdown {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.language-dropdown:hover {
    background: rgba(255,255,255,0.3);
}

.language-dropdown option {
    background: #1a4731;
    color: white;
}

/* ---------- Hero Section ---------- */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fff8 100%);
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 3rem;
    color: #1a4731;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: #1a4731;
    color: white;
    box-shadow: 0 4px 10px rgba(26,71,49,0.3);
}

.btn-primary:hover {
    background: #0e2e1f;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(26,71,49,0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #1a4731;
    color: #1a4731;
}

.btn-secondary:hover {
    background: #1a4731;
    color: white;
    transform: translateY(-2px);
}

/* ---------- Statistics Section ---------- */
.stats-section {
    background: linear-gradient(135deg, #1a4731 0%, #2e7d32 100%);
    padding: 60px 20px;
    margin: 30px 0;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    color: white;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    min-width: 150px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    font-family: monospace;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Gallery Section ---------- */
.image-gallery {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 50px 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    width: 300px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 20px;
    text-align: center;
}

.gallery-caption h3 {
    margin: 0 0 10px 0;
    color: #1a4731;
    font-size: 1.3rem;
}

.gallery-caption p {
    color: #666;
    font-size: 0.9rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
    background: #f5f5f5;
    padding: 60px 20px;
    text-align: center;
    margin: 30px 0;
}

.cta-content h2 {
    color: #1a4731;
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 30px;
    color: #666;
    font-size: 1.1rem;
}

/* ---------- Actions Page ---------- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

.actions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.actions-header h1 {
    color: #1a4731;
    font-size: 2rem;
}

.accordion {
    background-color: #e8f5e9;
    color: #1a4731;
    cursor: pointer;
    padding: 18px 25px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    border-radius: 12px;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion:hover, .accordion.active {
    background-color: #c8e6c9;
    transform: translateX(5px);
}

.action-count {
    font-size: 0.9rem;
    font-weight: normal;
    color: #2e7d32;
    background: white;
    padding: 4px 12px;
    border-radius: 20px;
}

.panel {
    padding: 20px;
    display: none;
    background-color: white;
    border-radius: 0 0 12px 12px;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* ---------- Action Cards ---------- */
.action-card {
    display: flex;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.action-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.action-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
    flex: 1;
}

.card-content h2 {
    color: #1a4731;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.action-meta {
    display: flex;
    gap: 15px;
    margin: 12px 0;
    font-size: 0.85rem;
    color: #666;
}

.action-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.empty-msg {
    font-style: italic;
    color: #999;
    padding: 20px;
    text-align: center;
}

/* ---------- Action Detail Page ---------- */
.action-detail {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.detail-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.detail-content {
    padding: 40px;
}

.detail-content h1 {
    font-size: 2.5rem;
    color: #1a4731;
    margin-bottom: 15px;
}

.short-desc {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    border-left: 4px solid #2e7d32;
    padding-left: 20px;
}

.info-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.info-item {
    flex: 1;
    background: #f1f8e9;
    padding: 15px 20px;
    border-radius: 16px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    color: #2e7d32;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.info-value {
    font-size: 1.1rem;
    color: #1a4731;
    font-weight: bold;
}

.location-detail, .coordinates {
    background: #f5f5f5;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.full-desc h3 {
    color: #1a4731;
    margin: 30px 0 15px;
    font-size: 1.4rem;
}

.full-desc p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.action-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.submitted-by {
    color: #777;
    font-size: 0.85rem;
}

/* ---------- Forms (Login, Register, Submit) ---------- */
.auth-box, .form-section {
    max-width: 550px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.auth-box h1, .form-section h1 {
    color: #1a4731;
    margin-bottom: 10px;
    text-align: center;
}

.auth-box p, .form-section p {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.eco-form .form-group {
    margin-bottom: 20px;
}

.eco-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.eco-form input, 
.eco-form select, 
.eco-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.eco-form input:focus, 
.eco-form select:focus, 
.eco-form textarea:focus {
    outline: none;
    border-color: #1a4731;
    box-shadow: 0 0 0 3px rgba(26,71,49,0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 0.9rem;
}

.form-group-checkbox input {
    width: auto;
}

.btn-full {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 14px;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #1a4731;
    font-weight: bold;
    text-decoration: none;
}

fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

legend {
    font-weight: bold;
    color: #1a4731;
    padding: 0 15px;
    font-size: 1.1rem;
}

/* ---------- Footer ---------- */
footer {
    background: #1a4731;
    color: white;
    text-align: center;
    padding: 30px;
    margin-top: 50px;
}

footer a {
    color: #a5d6a7;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.footer-links {
    margin-bottom: 15px;
}

/* ---------- Success/Error Messages ---------- */
.success-message, .error-message, .info-message {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.success-message {
    background: #e8f5e9;
    border-left: 4px solid #2e7d32;
    color: #1b5e20;
}

.error-message {
    background: #ffebee;
    border-left: 4px solid #c62828;
    color: #b71c1c;
}

.info-message {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    color: #0d47a1;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }
    
    nav ul {
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .action-card {
        flex-direction: column;
    }
    
    .action-card img {
        width: 100%;
        height: 180px;
    }
    
    .info-grid {
        flex-direction: column;
    }
    
    .detail-content {
        padding: 20px;
    }
    
    .detail-hero-image img {
        height: 250px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-box, .form-section {
        margin: 30px 20px;
        padding: 25px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 80%;
    }
}