/* mobile-upload.css - Mobile GPX Upload Styles - YKP Branding */

/* YKP Brand Colors */
:root {
    --ykp-red: #E36450;
    --ykp-navy: #003E7E;
    --ykp-yellow: #EBC900;
    --ykp-gold: #B99405;
    --ykp-white: #FFFFFF;
    --ykp-light-gray: #F5F5F5;
}

/* Body and Layout */
body {
    font-family: Arial, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--ykp-navy);
    min-height: 100vh;
    padding: 0;
    margin: 0;
}

.container-fluid {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

/* Header */
.header {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 12px 12px;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-family: 'Overpass', Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.club-name {
    font-family: 'Overpass', Arial, sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 4.5vw;
    width: 100%;
    padding: 0 10px;
}

/* YKP Logo */
.ykp-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ykp-logo {
    width: 60px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@media (max-width: 768px) {
    .ykp-logo {
        width: 50px;
    }
}

/* Content Wrapper */
.content-wrapper {
    padding: 10px;
}

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    transition: transform 0.2s ease;
}

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

.card-body {
    padding: 10px;
}

.card-title {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

.card-title i {
    color: var(--ykp-red);
    margin-right: 6px;
}

/* Form Inputs */
.form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--ykp-red);
    box-shadow: 0 0 0 0.2rem rgba(227, 100, 80, 0.25);
}

.form-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
    font-size: 14px;
}

/* Upload Button */
.btn-primary {
    background: var(--ykp-red);
    border: none;
    border-radius: 10px;
    padding: 10px;
    font-size: 17px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(227, 100, 80, 0.4);
    transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 100, 80, 0.6);
    background: #d94e3a;
}

.btn-primary:disabled {
    background: #cccccc;
    box-shadow: none;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--ykp-navy);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 62, 126, 0.4);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #002a5c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 62, 126, 0.6);
}

.btn-outline-secondary {
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
}

/* File Preview */
#filePreview .alert {
    background-color: #e8f0f7; /* Jasny granatowy YKP */
    border-color: #b3d0e6;
    color: #003E7E; /* Granatowy YKP */
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
}

#filePreview .alert p {
    margin: 4px 0 !important;
}

.alert {
    padding: 8px 10px;
    font-size: 14px;
}

/* Progress */
#progressContainer .card-body {
    background: #e8ecf0;
}

.progress {
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: var(--ykp-red);
    font-weight: bold;
    font-size: 14px;
}

/* Result Messages */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    border-radius: 10px;
}

.alert-success .alert-heading {
    color: #0c5d2b;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    border-radius: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.alert-danger .alert-heading {
    color: #491217;
}

/* Links */
a {
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

.text-white {
    color: white !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .header {
        padding: 10px 8px;
    }

    .header h1 {
        font-size: 20px;
    }

    .club-name {
        font-size: 5vw;
    }

    .content-wrapper {
        padding: 8px;
    }

    .card-body {
        padding: 8px;
    }

    .btn-lg {
        padding: 10px;
        font-size: 17px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 8px;
    }

    .card-title {
        font-size: 15px;
        margin-bottom: 6px !important;
    }

    .form-label {
        font-size: 13px;
        margin-bottom: 2px;
    }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        padding: 10px;
    }

    .header h1 {
        font-size: 20px;
    }

    .content-wrapper {
        padding: 8px;
    }

    .card {
        margin-bottom: 8px !important;
    }
}

/* iOS Safari specific */
@supports (-webkit-touch-callout: none) {
    body {
        /* Fix for iOS Safari bottom bar */
        min-height: -webkit-fill-available;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: slideIn 0.3s ease-out;
}

/* Shadow effects */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Spacing utilities */
.mb-2 {
    margin-bottom: 0.35rem !important;
}

.mb-3 {
    margin-bottom: 0.5rem !important;
}

@media (max-width: 768px) {
    .mb-2 {
        margin-bottom: 0.25rem !important;
    }
}

/* Success Screen - Simple */
.success-screen {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 100px;
    color: #28a745;
    margin-bottom: 20px;
    font-weight: bold;
}

.success-title {
    color: white;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.success-details {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.success-details p {
    margin: 15px 0;
    font-size: 18px;
    color: #333;
}

.success-actions {
    width: 100%;
}

.success-actions .btn {
    font-size: 18px;
    padding: 15px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .success-icon {
        font-size: 80px;
    }

    .success-title {
        font-size: 22px;
    }

    .success-details {
        padding: 20px;
    }

    .success-details p {
        font-size: 16px;
        margin: 10px 0;
    }

    .success-actions .btn {
        font-size: 16px;
        padding: 12px;
    }
}

/* File input styling - compatible with all browsers */
input[type="file"] {
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: white;
    width: 100%;
    font-size: 16px;
}

input[type="file"]:hover {
    border-color: var(--ykp-red);
}

input[type="file"]:focus {
    outline: none;
    border-color: var(--ykp-red);
    box-shadow: 0 0 0 0.2rem rgba(227, 100, 80, 0.25);
}

/* Modern browsers - styled button */
input[type="file"]::-webkit-file-upload-button {
    background: var(--ykp-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

input[type="file"]::-webkit-file-upload-button:hover {
    background: #d94e3a;
}

/* Firefox */
input[type="file"]::file-selector-button {
    background: var(--ykp-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

input[type="file"]::file-selector-button:hover {
    background: #d94e3a;
}
