/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 *= require_tree .
 *= require_self
 */

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

:root {
    --primary-color: #2d4a2b;
    --secondary-color: #8b6f47;
    --accent-color: #d4a574;
    --text-light: #f5f5f0;
    --text-dark: #333;
    --bg-light: #fafaf8;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Georgia', serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background: rgba(45, 74, 43, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 1px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--accent-color);
}/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-light);
    margin: 5% auto;
    padding: 3rem;
    max-width: 800px;
    border-radius: 4px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--secondary-color);
}

.roadmap {
    margin-top: 2rem;
}

.roadmap-phase {
    border-left: 3px solid var(--secondary-color);
    padding-left: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.roadmap-phase::before {
    content: '';
    width: 15px;
    height: 15px;
    background: var(--secondary-color);
    border-radius: 50%;
    position: absolute;
    left: -9px;
    top: 0;
}

.roadmap-phase.completed::before {
    background: var(--primary-color);
}

.roadmap-phase h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.roadmap-phase .phase-date {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.4)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f5f5f0" width="1200" height="800"/><path fill="%232d4a2b" opacity="0.1" d="M0 400 C 300 350 900 450 1200 400 L 1200 800 L 0 800 Z"/><circle cx="600" cy="400" r="200" fill="%238b6f47" opacity="0.05"/></svg>') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .author {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 2px;
    transition: var(--transition);
    letter-spacing: 1px;
}

.cta-button:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* About Section */
.section {
    padding: 5rem 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    font-weight: 300;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-image {
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    opacity: 0.2;
}

/* Cities Section */
.cities {
    background: var(--primary-color);
    color: var(--text-light);
}

.cities .section-title {
    color: var(--text-light);
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.city-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition);
}

.city-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.city-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.city-status {
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.roadmap-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.roadmap-button:hover {
    background: var(--text-light);
    color: var(--primary-color);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.product-card {
    text-align: center;
}

.product-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(212, 165, 116, 0.3) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.product-icon::after {
    content: '';
    width: 60%;
    height: 60%;
    background: var(--primary-color);
    opacity: 0.3;
    border-radius: 50%;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
    text-align: center;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

/* Contributor Section */
.contributor {
    background: var(--primary-color);
    color: var(--text-light);
}

.contributor-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contributor-content p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.apply-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 2px;
    transition: var(--transition);
    letter-spacing: 1px;
    font-weight: 500;
}

.apply-button:hover {
    background: var(--text-light);
    transform: translateY(-2px);
}

/* Main content wrapper */
main {
    flex: 1;
}

/* Add padding for pages that aren't full-screen hero sections */
body:not(.hero-page) main {
    padding-top: 80px; /* Account for fixed navigation height */
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

footer p {
    margin: 0;
}

/* Admin Styles */
.admin {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

.admin-header {
    background: #2d4a2b;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.admin-nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.admin-main {
    padding: 2rem 0;
}

.admin-main.login-page {
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-main .admin-container {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.admin-main.login-page .admin-container {
    padding: 0;
    background: transparent;
    box-shadow: none;
    max-width: none;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d4a2b;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2d4a2b;
    box-shadow: 0 0 0 2px rgba(45, 74, 43, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #2d4a2b;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #1f3521;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
    vertical-align: middle;
    min-height: 60px;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d4a2b;
}

.table tr:hover {
    background: #f8f9fa;
}

/* Admin Section */
.admin-section {
    width: 100%;
    margin-bottom: 2rem;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.admin-section-header h2 {
    margin: 0;
    color: #2d4a2b;
    font-size: 1.8rem;
    font-weight: 600;
}

.empty-state {
    width: 100%;
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.empty-state h3 {
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Form Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    margin-top: 2rem;
}

/* Location Details */
.location-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: #2d4a2b;
    font-weight: 600;
    min-width: 150px;
}

/* Location Stats */
.location-stats {
    margin-bottom: 2rem;
}

.location-stats h3 {
    color: #2d4a2b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2d4a2b;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6c757d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Location Actions */
.location-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.location-actions h3 {
    color: #2d4a2b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Danger Zone */
.danger-zone {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.danger-zone h3 {
    color: #c53030;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.warning-text {
    color: #c53030;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Tree Images */
.tree-images {
    margin-bottom: 2rem;
}

.tree-images h3 {
    color: #2d4a2b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.image-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tree-thumbnail {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.no-image {
    width: 100%;
    height: 150px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.image-info {
    padding: 0.75rem;
    text-align: center;
}

.image-info strong {
    display: block;
    color: #2d4a2b;
    margin-bottom: 0.25rem;
}

.image-info small {
    color: #6c757d;
}

.image-actions {
    padding: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.btn-small.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-small.btn-secondary:hover {
    background: #545b62;
}

.btn-small.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-small.btn-danger:hover {
    background: #c82333;
}

/* Roadmap Phases Section */
.roadmap-phases-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h3 {
    margin: 0;
    color: #2d4a2b;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Image Details */
.image-details {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.image-display {
    text-align: center;
}

.full-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.no-image.large {
    width: 100%;
    height: 300px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
}

.image-metadata {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
}

.exif-grid {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

/* Form Help */
.form-help {
    display: block;
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.current-image {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.thumbnail-preview {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

/* Roadmap Phase Styles */
.status-completed {
    color: #155724;
    font-weight: bold;
}

.status-pending {
    color: #856404;
    font-weight: bold;
}

.phase-updates {
    margin-bottom: 2rem;
}

.phase-updates h3 {
    color: #2d4a2b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.updates-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.update-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.update-header h4 {
    margin: 0;
    color: #2d4a2b;
    font-size: 1.1rem;
}

.update-header small {
    color: #6c757d;
    font-size: 0.9rem;
}

.update-content {
    color: #333;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.read-more {
    color: #2d4a2b;
    text-decoration: none;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

.update-images {
    color: #6c757d;
    font-size: 0.9rem;
}

.phase-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.phase-actions h3 {
    color: #2d4a2b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Tree Actions */
.tree-actions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.tree-actions h3 {
    color: #2d4a2b;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Text Utilities */
.text-muted {
    color: #6c757d;
}

/* Action Links */
.actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
}

.actions a {
    padding: 0.25rem 0.5rem;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9rem;
    display: inline-block;
    line-height: 1;
    transition: background-color 0.3s ease;
}

.actions .edit {
    background: #ffc107;
    color: #212529;
}

.actions .edit:hover {
    background: #e0a800;
}

.actions .delete {
    background: #dc3545;
    color: white;
}

.actions .delete:hover {
    background: #c82333;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    display: inline-block;
    line-height: 1;
}

.delete-btn:hover {
    background: #c82333;
}

.inline-form {
    display: inline;
    margin: 0;
}

/* Login Form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f8f9fa;
}

.login-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-form h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #2d4a2b;
    font-size: 2rem;
    font-weight: 300;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d4a2b;
}

.login-form .form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.login-form .form-group input:focus {
    outline: none;
    border-color: #2d4a2b;
    box-shadow: 0 0 0 2px rgba(45, 74, 43, 0.1);
}

.login-form .btn {
    width: 100%;
    padding: 0.75rem;
    background: #2d4a2b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form .btn:hover {
    background: #1f3521;
}

.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
    text-align: center;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}


/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cities-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .admin-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-nav {
        justify-content: center;
    }

    .table th,
    .table td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }

    .login-form {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Account Form */
.account-form {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Flash Messages */
.flash-notice,
.flash-alert {
    width: 100%;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    clear: both;
}

.flash-notice {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-alert {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
