/* GameTrail.Science - Mobile-First Hunting Application Styles */
/* System Physics, LLC */

:root {
    /* Hunting/Outdoor Color Palette */
    --primary: #2d5016;        /* Forest Green */
    --secondary: #8b4513;      /* Saddle Brown */
    --accent: #daa520;         /* Goldenrod */
    --success: #228b22;        /* Forest Green */
    --info: #4682b4;           /* Steel Blue */
    --warning: #ff8c00;        /* Dark Orange */
    --danger: #b22222;         /* Fire Brick */
    --light: #f5f5dc;          /* Beige */
    --dark: #2f4f4f;           /* Dark Slate Gray */
    --earth-brown: #8b4513;
    --earth-tan: #d2b48c;
    --earth-olive: #6b8e23;
    --earth-rust: #cd853f;
    
    /* Typography */
    --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.5;
    
    /* Spacing */
    --spacer: 1rem;
    --border-radius: 0.375rem;
    
    /* Shadows */
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

/* Base Styles */
body {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark);
    background-color: #f8f9fa;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Card-based Mobile Design Enhancements */

/* Hero Card */
.hero-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-2px);
}

.hero-icon {
    padding: 1rem;
    background: linear-gradient(135deg, #4a7c23 0%, #2d5016 100%);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.hero-icon i {
    color: white;
}

/* Feature Icon Circles */
.feature-icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #4a7c23 0%, #2d5016 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    font-size: 1.8rem;
}

.feature-icon-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* Enhanced Card Interactions */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Map Analysis Styles */
#map {
    border-radius: 0;
    box-shadow: inset 0 0 0 2px var(--primary);
    background-color: #f8f9fa;
    height: 100% !important;
    width: 100% !important;
}

.leaflet-container {
    background-color: #f8f9fa;
    font-family: var(--font-family-base);
}

.leaflet-control-layers {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 2px solid var(--primary);
}

.leaflet-control-layers-toggle {
    background-color: var(--primary);
    background-image: none;
    border-radius: 6px;
}

.leaflet-control-layers-toggle:after {
    content: "🗺️";
    font-size: 16px;
    line-height: 26px;
    text-align: center;
    color: white;
}

.leaflet-bar {
    border-radius: 8px;
    border: 2px solid var(--primary);
    overflow: hidden;
}

.leaflet-bar a {
    background-color: var(--primary);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.leaflet-bar a:hover {
    background-color: #4a7c23;
}

.control-panel {
    background-color: white;
    border-top: 3px solid var(--primary);
}

/* Map loading styles */
#map-overlay {
    pointer-events: none;
}

#map-overlay .bg-white {
    border: 2px solid var(--primary);
}

/* Analysis results styling */
.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
    font-weight: bold;
}

.score-number {
    font-size: 1.5rem;
    line-height: 1;
}

/* Stand marker custom styling */
.stand-marker {
    background: none !important;
    border: none !important;
}

.stand-popup {
    text-align: center;
    min-width: 150px;
}

.stand-popup h6 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Mobile-responsive map layout */
@media (max-width: 768px) {
    .control-panel .row.g-2 {
        flex-direction: column;
    }
    
    .control-panel .col-md-6,
    .control-panel .col-md-4,
    .control-panel .col-md-2 {
        flex: 1 1 auto;
        max-width: 100%;
    }
    
    .control-panel .card {
        margin-bottom: 0.5rem;
    }
    
    .control-panel {
        padding: 0.75rem !important;
    }
    
    /* Stack species selection and analyze button vertically on very small screens */
    .control-panel .d-flex.flex-wrap {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .control-panel .flex-grow-1 {
        flex-grow: 1 !important;
    }
}

/* Compact card styling for horizontal layout */
.control-panel .card {
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-panel .card-header {
    background-color: rgba(45, 80, 22, 0.1);
    border-bottom: 1px solid rgba(45, 80, 22, 0.2);
}

.control-panel .btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--primary) 100%);
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.control-panel .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Header layout improvements */
.control-panel .d-flex.gap-2 {
    gap: 1rem !important;
}

@media (max-width: 576px) {
    .control-panel .d-flex.gap-2 {
        gap: 0.5rem !important;
    }
    
    .control-panel .btn-success {
        white-space: nowrap;
        min-width: 100px;
    }
}

/* New Pricing Card */
.pricing-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.trial-badge-new {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    z-index: 10;
}

.price-display {
    margin: 1rem 0;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: #2d5016;
}

.price-period {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 400;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: #1a3009;
    border-color: #1a3009;
}

.btn-success {
    background-color: var(--success);
    border-color: var(--success);
}

.btn-warning {
    background-color: var(--warning);
    border-color: var(--warning);
    color: white;
}

.btn-info {
    background-color: var(--info);
    border-color: var(--info);
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand i {
    color: var(--accent);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--earth-olive) 100%);
    min-height: 100vh;
    color: white;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.feature-list .feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list .feature-item i {
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.cta-buttons {
    margin-top: 2rem;
}

.pricing-info {
    margin-top: 1rem;
}

/* App Preview */
.app-preview {
    position: relative;
    z-index: 1;
}

.phone-mockup {
    max-width: 300px;
    margin: 0 auto;
    position: relative;
}

.phone-mockup .screen {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--box-shadow-lg);
    text-align: center;
}

.map-preview {
    padding: 2rem;
    color: var(--dark);
}

/* Feature Cards */
.feature-card {
    background: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

/* Pricing */
.pricing-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    max-width: 400px;
    position: relative;
}

.trial-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--warning);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.period {
    font-size: 1rem;
    color: var(--secondary);
}

.pricing-card .feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-card .feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
}

.pricing-card .feature-list i {
    color: var(--success);
    margin-right: 0.5rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 76px);
}

/* Quick Action Cards */
.quick-action-card {
    border: none;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease-in-out;
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

/* Map Cards */
.map-card {
    border: none;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease-in-out;
    overflow: hidden;
}

.map-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-lg);
}

.map-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-img-container {
    position: relative;
    overflow: hidden;
}

.img-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.card-img-container:hover .img-overlay {
    opacity: 1;
}

.card-img-placeholder {
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    color: var(--secondary);
}

/* Map Interface */
#map {
    height: calc(100vh - 76px);
    width: 100%;
}

.control-panel {
    background: white;
    border-left: 1px solid #dee2e6;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
}

.control-panel .card {
    border: none;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.control-panel .card-header {
    background-color: var(--light);
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

/* Results Panel */
.analysis-summary {
    text-align: center;
}

.score-circle {
    width: 80px;
    height: 80px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.score-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* Tips Page */
.page-header h1 {
    color: var(--primary);
}

.tips-card {
    border: none;
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

.tips-card .card-header {
    font-weight: 600;
    border-bottom: 2px solid;
}

.tips-card .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.tips-card .list-unstyled li:last-child {
    border-bottom: none;
}

/* Legal Documents */
.legal-document {
    max-width: 100%;
}

.legal-content {
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.legal-content h1, .legal-content h2, .legal-content h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul, .legal-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* Subscription Page */
.subscription-status {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.feature-item {
    text-align: center;
    padding: 1rem;
}

.feature-item i {
    display: block;
    margin-bottom: 1rem;
}

/* Detail Rows */
.detail-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-row i {
    width: 20px;
    margin-right: 0.5rem;
    text-align: center;
}

/* Empty States */
.empty-state {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 3rem;
}

/* Error Pages */
.error-page {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 3rem;
}

.action-buttons {
    margin-top: 2rem;
}

.contact-info {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1rem;
}

/* Weather Widget */
.weather-display {
    text-align: center;
}

.weather-display h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Tip Carousel */
.tip-carousel {
    position: relative;
    min-height: 120px;
}

.tip-item {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.tip-item.active {
    display: block;
    opacity: 1;
}

.tip-item h6 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }
    
    .hero-card .card-body {
        padding: 2rem !important;
    }
    
    .hero-icon {
        width: 80px;
        height: 80px;
    }
    
    .hero-icon i {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .feature-icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-icon-small {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .pricing-card .card-body {
        padding: 2rem !important;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    .trial-badge-new {
        top: 15px;
        right: 15px;
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .control-panel {
        border-left: none;
        border-top: 1px solid #dee2e6;
        max-height: none;
    }
    
    #map {
        height: 50vh;
    }
    
    .phone-mockup {
        max-width: 250px;
        margin-top: 2rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .score-circle {
        width: 60px;
        height: 60px;
    }
    
    .score-number {
        font-size: 1.2rem;
    }
    
    .legal-content {
        font-size: 0.9rem;
    }
    
    .detail-row {
        font-size: 0.85rem;
    }
    
    /* Stack action buttons on mobile */
    .action-buttons .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    /* Improve touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .form-control, .form-select {
        min-height: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-card .card-body {
        padding: 1.5rem !important;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-icon {
        width: 70px;
        height: 70px;
    }
    
    .hero-icon i {
        font-size: 2rem;
    }
    
    .feature-icon-circle {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .pricing-card .card-body {
        padding: 1.5rem !important;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .btn-group-vertical .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Stack feature cards on very small screens */
    .row.g-4 > [class*="col-md-6"] {
        margin-bottom: 1rem;
    }
}

/* Landscape Orientation on Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    #map {
        height: 40vh;
    }
    
    .hero-section {
        min-height: auto;
        padding: 1rem 0;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .card-img-top, .map-card img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support (Future Enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .modal {
        display: none !important;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    .card {
        border: 1px solid #000;
        box-shadow: none;
    }
}

/* Loading Animations */
.spinner-border {
    color: var(--primary);
}

.progress-bar {
    background-color: var(--primary);
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(45, 80, 22, 0.25);
    border-color: var(--primary);
}

/* Custom Scrollbar */
.control-panel::-webkit-scrollbar {
    width: 6px;
}

.control-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.control-panel::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Single Column Results Styling */
.single-column-results {
    max-width: 100%;
}

.single-column-results .card {
    transition: transform 0.2s ease;
}

.single-column-results .card:hover {
    transform: translateY(-2px);
}

.single-column-results img {
    border: 2px solid #e9ecef;
    transition: transform 0.3s ease;
}

.single-column-results img:hover {
    transform: scale(1.02);
}

.single-column-results .badge {
    font-size: 0.9em;
    font-weight: 500;
}

.single-column-results .border-bottom {
    border-color: #dee2e6 !important;
}

.single-column-results h5 {
    font-weight: 600;
    color: #2c3e50;
}

.single-column-results h6 {
    font-weight: 600;
    color: #495057;
}

/* Analysis Stats Cards */
.single-column-results .card-body h3 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* List styling improvements */
.single-column-results ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.single-column-results ul li:last-child {
    border-bottom: none;
}
