/* Animasyonlar için keyframes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(44, 85, 48, 0.2); }
    50% { box-shadow: 0 0 20px rgba(44, 85, 48, 0.4); }
    100% { box-shadow: 0 0 5px rgba(44, 85, 48, 0.2); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

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

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

body::before {
    display: none !important;
}

header, footer {
    position: relative;
    background: none !important;
    overflow: hidden;
}

header::before, footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        linear-gradient(120deg, rgba(26,61,31,0.80) 0%, rgba(32,77,42,0.80) 100%),
        url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1200&q=80') center center / cover no-repeat;
    opacity: 0.92;
    filter: blur(3px) brightness(0.85) grayscale(0.08);
}

header, footer {
    background: rgba(255,255,255,0.93) !important;
    backdrop-filter: blur(1px);
}

header > *, footer > * {
    position: relative;
    z-index: 1;
}

header {
    background: linear-gradient(135deg, #2c5530 0%, #1a3d1f 100%);
    color: white;
    padding: 0;
    height: 15vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: glow 3s infinite;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: pulse 3s infinite;
    margin-top: 1.5rem;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    padding: 0.5rem 2rem;
    border-radius: 25px;
    background: rgba(44, 85, 48, 0.3);
    box-shadow: none;
    position: relative;
    overflow: visible;
    outline: none;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: 0 0 10px 2px rgba(255,255,255,0.15);
}

nav a::before { display: none; }

/* X işareti veya popup overlay için ekstra stil kaldırma */
.leaflet-popup-close-button {
    display: none !important;
}

main {
    height: 75vh;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(135deg, #f9f9f9 0%, #e9ecef 100%);
}

section {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.5s ease-out;
    transition: all 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c5530;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 1rem 0;
    flex: 1;
}

.category-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 85, 48, 0.1) 0%, rgba(44, 85, 48, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-card i {
    font-size: 4rem;
    color: #2c5530;
    margin-bottom: 1rem;
    animation: float 3s infinite ease-in-out;
}

.category-card h3 {
    font-size: 1.5rem;
    color: #2c5530;
    transition: all 0.3s ease;
}

.category-card:hover h3 {
    transform: scale(1.1);
}

.info-panel {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 1rem;
    flex: 1;
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

.info-content {
    height: 100%;
    overflow: hidden;
}

.info-content h3 {
    font-size: 1.5rem;
    color: #2c5530;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.items-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    height: calc(100% - 3rem);
    overflow: hidden;
}

.item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out;
}

.item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.item h4 {
    color: #2c5530;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.map-container {
    position: relative;
    flex: 1;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.world-map {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    transition: transform 0.3s ease;
}

/* Harita lejantı */
.map-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.map-legend h4 {
    margin-bottom: 10px;
    color: #2c5530;
    font-size: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 0.9rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 8px;
    display: inline-block;
}

/* Harita kontrolleri */
.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1000;
}

.map-controls button {
    background: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-controls button:hover {
    background: #e9ecef;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Harita popup stilleri */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.leaflet-popup-content {
    margin: 10px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.biodiversity-popup {
    padding: 5px;
}

.biodiversity-popup h3 {
    color: #2c5530;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.biodiversity-popup p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Harita marker stilleri */
.biodiversity-marker {
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.biodiversity-marker:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

footer {
    text-align: center;
    padding: 0.5rem;
    background: linear-gradient(135deg, #2c5530 0%, #1a3d1f 100%);
    color: white;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

/* Aktif kategori kartı için stil */
.category-card.active {
    background: linear-gradient(135deg, #2c5530 0%, #1a3d1f 100%);
    color: white;
    transform: scale(1.05);
}

.category-card.active i,
.category-card.active h3 {
    color: white;
}

/* Ripple efekti için stil */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

/* Mikroorganizma modalı */
.micro-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(30, 50, 40, 0.97);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s;
}

.micro-modal-content {
    background: #fff;
    border-radius: 20px;
    max-width: 1100px;
    width: 90vw;
    max-height: 90vh;
    padding: 2rem 2rem 1.5rem 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: slideIn 0.5s;
}

.micro-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
    transition: background 0.2s;
}
.micro-modal-close:hover {
    background: #c0392b;
}

.micro-modal-content h2 {
    color: #2c5530;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.micro-modal-list {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
    overflow-y: auto;
    max-height: 60vh;
    padding-bottom: 1rem;
}

@media (min-width: 700px) {
    .micro-modal-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1000px) {
    .micro-modal-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.micro-modal-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    animation: fadeIn 0.5s;
    min-height: 90px;
}

.micro-modal-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0;
    margin-right: 1.2rem;
    margin-left: 0;
    box-shadow: 0 2px 8px rgba(44,85,48,0.10);
    border: 3px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.micro-modal-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.micro-modal-item h4 {
    color: #2c5530;
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.micro-modal-item p {
    color: #444;
    font-size: 0.98rem;
    margin: 0;
}

.animal-img-marker img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #e74c3c;
    background: #fff;
    object-fit: cover;
    display: block;
}

.wheat-img-marker {
    border-radius: 50% !important;
    border: 2px solid #FFD600 !important;
    box-sizing: border-box;
    background: #fff !important;
    width: 38px !important;
    height: 38px !important;
    overflow: hidden;
}

.wheat-img-marker img {
    border-radius: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 2px solid #FFD600;
} 