/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
    color: #ecf0f1;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: rgba(44, 62, 80, 0.9);
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #1abc9c;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 2.5rem;
    color: #1abc9c;
    margin-right: 15px;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, #1abc9c, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

nav ul li a i {
    margin-right: 8px;
}

nav ul li a:hover, nav ul li a.active {
    background: rgba(26, 188, 156, 0.3);
    color: #1abc9c;
}

.btn-login {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.2) !important;
}

.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(rgba(26, 42, 58, 0.8), rgba(44, 62, 80, 0.9)), url('https://images.unsplash.com/photo-1552674605-db0b4e62705f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.premium-hero {
    background: linear-gradient(rgba(40, 30, 60, 0.9), rgba(60, 40, 90, 0.9)), url('https://images.unsplash.com/photo-1552674605-db0b4e62705f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1abc9c;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
}

.btn i {
    margin-right: 10px;
}

.btn-primary {
    background: linear-gradient(to right, #1abc9c, #2ecc71);
    color: white;
    box-shadow: 0 5px 20px rgba(26, 188, 156, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(to right, #16a085, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 188, 156, 0.6);
}

.btn-secondary {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(to right, #2980b9, #1c6ea4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
}

.features {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #1abc9c;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #bdc3c7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(26, 188, 156, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    color: #1abc9c;
    margin-bottom: 20px;
}

.premium-icon {
    color: #f1c40f;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1abc9c;
}

.pricing {
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    margin: 40px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
    justify-content: center;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.pricing-card.featured {
    background: rgba(26, 188, 156, 0.15);
    border: 1px solid #1abc9c;
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #f1c40f;
    color: #2c3e50;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
}

.pricing-card h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1abc9c;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #1abc9c;
    margin-bottom: 10px;
}

.price span {
    font-size: 1.2rem;
    color: #bdc3c7;
}

.price-annual {
    font-size: 1.5rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.save {
    background: #2ecc71;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-card ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.pricing-card ul li:last-child {
    border-bottom: none;
}

.pricing-card ul li i {
    margin-right: 15px;
    width: 20px;
}

.pricing-card ul li i.fa-check {
    color: #2ecc71;
}

.pricing-card ul li i.fa-times {
    color: #e74c3c;
}

.trial-note {
    margin-top: 20px;
    color: #bdc3c7;
    font-size: 0.9rem;
}

.testimonials {
    padding: 60px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card:before {
    content: """;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: #1abc9c;
    opacity: 0.2;
    font-family: Georgia, serif;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1abc9c;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: #bdc3c7;
    font-size: 0.9rem;
}

.main-content {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.map-section {
    flex: 3;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.map-header h2 {
    font-size: 1.8rem;
    color: #1abc9c;
    display: flex;
    align-items: center;
}

.map-header h2 i {
    margin-right: 10px;
}

#map {
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.controls-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.panel {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.panel h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1abc9c;
    display: flex;
    align-items: center;
}

.panel h3 i {
    margin-right: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(26, 188, 156, 0.15);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(26, 188, 156, 0.25);
}

.stat-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #bdc3c7;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1abc9c;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.export-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.btn {
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(to right, #1abc9c, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 188, 156, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(to right, #16a085, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 188, 156, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(to right, #c0392b, #a5281b);
    transform: translateY(-3px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.elevation-chart {
    height: 180px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.chart-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 188, 156, 0.3), transparent);
}

.chart-line:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1abc9c;
    border-radius: 3px;
}

.elevation-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.elevation-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.elevation-stat span:first-child {
    font-size: 0.9rem;
    color: #bdc3c7;
    margin-bottom: 5px;
}

.elevation-stat span:last-child {
    font-weight: 700;
    color: #1abc9c;
}

.saved-routes {
    margin-top: 20px;
}

.saved-routes-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.saved-routes-header input {
    flex: 1;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #ecf0f1;
}

.saved-routes ul {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.saved-routes li {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.saved-routes li:hover {
    background: rgba(26, 188, 156, 0.2);
}

.saved-routes li button {
    background: none;
    border: none;
    color: #1abc9c;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.saved-routes li button:hover {
    color: #e74c3c;
    transform: scale(1.2);
}

.instructions {
    background: rgba(26, 188, 156, 0.15);
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
}

.instructions h4 {
    color: #1abc9c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.instructions h4 i {
    margin-right: 10px;
}

.instructions ol {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 12px;
}

.route-editing {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.route-editing h4 {
    color: #1abc9c;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.route-editing h4 i {
    margin-right: 10px;
}

.editing-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.editing-buttons .btn {
    padding: 10px;
    font-size: 0.9rem;
}

.premium-notice {
    background: rgba(241, 196, 15, 0.15);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    text-align: center;
}

.premium-notice p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.premium-notice p i {
    margin-right: 10px;
    color: #f1c40f;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    background: rgba(26, 188, 156, 0.9);
    color: white;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(200%);
    transition: transform 0.4s ease;
    z-index: 2000;
}

.notification.show {
    transform: translateX(0);
}

.route-point {
    background: #1abc9c;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    cursor: pointer;
    position: relative;
}

.route-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.start-point {
    background: #2ecc71;
}

.end-point {
    background: #e74c3c;
}

.route-point-label {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #1a2a3a, #2c3e50);
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 20px;
}

.auth-header h2 {
    font-size: 2rem;
    color: #1abc9c;
    margin-bottom: 10px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.auth-form input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    color: #ecf0f1;
    font-size: 1rem;
}

.auth-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer p {
    margin-bottom: 10px;
}

.form-footer a {
    color: #1abc9c;
    text-decoration: none;
    font-weight: 500;
}

.form-footer a:hover {
    text-decoration: underline;
}

footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 50px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #1abc9c;
    margin-bottom: 20px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
}

.footer-section h3 i {
    margin-right: 10px;
}

.footer-section p {
    margin-bottom: 15px;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-section ul li a i {
    margin-right: 10px;
    color: #1abc9c;
}

.footer-section ul li a:hover {
    color: #1abc9c;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
    
    #map {
        height: 400px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .buttons {
        grid-template-columns: 1fr;
    }
    
    .export-buttons {
        grid-template-columns: 1fr;
    }
}
