/* style.css - Optimized and consolidated */

/* === BASE STYLES === */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    background: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 0;
    font-size: clamp(14px, 2.5vw, 18px);
}

h1, h2 {
    color: #34495e;
}

ul {
    list-style: none;
    padding: 0 !important;
}

/* === ANIMATIONS === */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* === NAVIGATION === */
header nav {
    background: #2c3e50;
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

header nav a {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 600;
}

header nav a:hover {
    text-decoration: underline;
}

/* === MAIN LAYOUT === */
main {
    width: 98%;
    margin: 1rem auto;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* === FORMS === */
form label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

form input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: 0;
}

.form-control:read-only {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.text-danger small {
    font-size: 0.875rem;
    font-weight: 500;
}

/* === BUTTONS === */
button, .btn {
    margin-top: 0.5rem !important;
    padding: 0.75rem 1.5rem;
    background: #2980b9;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    background: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

button:disabled, .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
}

.btn-danger {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

.btn-info {
    background: #17a2b8;
    border-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    border-color: #117a8b;
}

/* === ALERTS === */
.alert {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid transparent;
    margin-bottom: 1rem;
}

.alert-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeaa7;
}

.alert-warning a {
    color: #856404;
    text-decoration: underline;
}

.alert-warning a:hover {
    color: #533f03;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 15px;
    padding: 1.5rem;
}

.alert-success h4, .alert-success p {
    color: #155724;
}

.alert-success p {
    margin-bottom: 1.5rem;
}

/* === MESSAGE CATEGORIES === */
li.success {
    color: green;
}

li.info {
    color: #2980b9;
}

li.danger {
    color: red;
}

/* === GAME CONTAINERS === */
.game-form-container,
.players-section,
.scoreboard-section,
.game-actions-section,
.admin-actions-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 2rem;
}

.game-form-container {
    padding: 2rem;
}

.game-form-container h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.game-form-container .text-muted {
    color: #6c757d !important;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.players-section h3,
.scoreboard-section h3,
.game-actions-section h3,
.admin-actions-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.game-actions-section h3,
.admin-actions-section h3 {
    font-weight: 600;
    font-size: 1.25rem;
}

.game-actions-section,
.admin-actions-section {
    border: 1px solid #e9ecef;
}

.admin-actions-section {
    margin-top: 1.5rem;
}

/* === USER PINS & AVATARS === */
.user-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-pin-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    background: #fff;
}

.user-pin-avatar-fallback {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    font-size: 14px;
    font-weight: 600;
    color: white;
}

.user-pin-name {
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.95);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    border: 2px solid;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* === PLAYERS LIST === */
.players-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.player-item {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.15s ease-in-out;
}

.player-item:hover {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.player-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    flex-shrink: 0;
}

.avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #6c757d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.player-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.player-name {
    font-weight: 600;
    font-size: 1.1rem;
}

/* === TEAM STYLES === */
.team-badge {
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-badge.no-team {
    background-color: #6c757d;
    color: white;
}

.team-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-color-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.team-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.team-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #495057;
    margin-bottom: 0.25rem;
}

.team-stats {
    font-size: 0.9rem;
    color: #6c757d;
}

/* === SCOREBOARD === */
.scoreboard-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.scoreboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.15s ease-in-out;
}

.scoreboard-item:hover {
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.team-score {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.area-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.area-unit {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === GAME MAP === */
.game-map-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    overflow: hidden;
}

.game-map-header {
    background: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#game-map {
    height: 60vh;
    min-height: 400px;
    width: 100%;
}

/* === MAP MARKERS === */
.no-gps-player-marker {
    background: transparent;
    border: none;
}

.no-gps-marker {
    position: relative;
    width: 20px;
    height: 20px;
}

.marker-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #007bff;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
    z-index: 2;
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

.start-location-marker {
    background: transparent !important;
    border: none !important;
}

.start-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    width: 60px;
    height: 70px;
}

.start-marker-icon {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    line-height: 1;
    animation: pulse 2s infinite;
    text-align: center;
}

.start-marker-label {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #ff6b6b;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.area-label-overlay {
    background: transparent !important;
    border: none !important;
}

.area-label {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.8);
}

.user-pin-container {
    background: transparent !important;
    border: none !important;
}

/* === PATH LENGTH === */
.path-length-section {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 1rem;
}

.path-length-header {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

.path-length-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.path-length-label {
    color: #6c757d;
    font-weight: 500;
}

.path-length-value {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1em;
}

.path-length-hint {
    color: #6c757d;
    font-size: 0.9em;
    font-style: italic;
}

.current-path-info {
    margin-top: 0.25rem;
    font-size: 0.85em;
}

/* === TIMER === */
#timer-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

#timer-box.finished {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-color: #28a745;
}

#timer-display {
    flex: 1;
    min-width: 250px;
}

#timer-box button {
    margin: 0 !important;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.map-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#btn-center-location {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
}

#btn-center-location:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}


#btn-put-marker {
    background-color: #e74c3c;
    color: white;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
    margin: 0 !important;
}

#btn-put-marker:hover:not(:disabled) {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

#btn-put-marker:disabled {
    background-color: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.6;
}

#btn-put-marker:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* === GAME UPDATES === */
.game-updates-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    overflow: hidden;
    color: white;
}

.game-updates-header {
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.game-updates-list {
    max-height: 200px;
    overflow-y: auto;
}

.game-update-item {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.game-update-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.game-update-item:last-child {
    border-bottom: none;
}

.game-update-message {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.4;
}

.game-update-time {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-left: 1rem;
    white-space: nowrap;
}

.game-update-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.game-update-dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* === MANUAL MODE === */
.manual-mode-section {
    background: #e3f2fd;
    border: 2px solid #1976d2;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.manual-mode-header {
    background: #1976d2;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px 6px 0 0;
}

.manual-mode-instructions {
    font-size: 12px;
    color: #1976d2;
    font-style: italic;
    padding: 8px;
    background: #e3f2fd;
    border-radius: 0 0 6px 6px;
}

/* === ACTION BUTTONS === */
.game-actions-buttons,
.admin-actions-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.game-actions-buttons .btn,
.admin-actions-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.game-actions-buttons .btn:hover,
.admin-actions-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.admin-actions-info {
    color: #6c757d;
    font-style: italic;
    margin-top: 0.75rem;
}

/* === FINAL SCOREBOARD === */
.final-scoreboard {
    max-height: 70vh;
    overflow-y: auto;
}

.final-score-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.final-score-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.final-score-item.winner {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
}

.position-badge {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #6c757d;
    margin-right: 1rem;
}

.winner .position-badge {
    color: #856404;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.score-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-right: 0.5rem;
}

.score-value {
    font-weight: bold;
    color: #495057;
}

.area-score .score-value {
    color: #28a745;
}

.bonus-score .score-value {
    color: #ffc107;
}

.final-score .score-value {
    color: #007bff;
    font-size: 1.1rem;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .game-actions-buttons,
    .admin-actions-buttons {
        flex-direction: column;
    }
    
    .game-actions-buttons .btn,
    .admin-actions-buttons .btn {
        width: 100%;
              min-width: auto;
  }
}

/* Bonus Point Styles */
.bonus-star-large {
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), -1px -1px 2px rgba(255,255,255,0.8);
    filter: brightness(1.3) saturate(1.5);
}

.bonus-star-medium {
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8), -1px -1px 2px rgba(255,255,255,0.8);
    filter: brightness(1.3) saturate(1.5);
}

.bonus-checkmark {
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.bonus-timer {
    font-size: 12px;
    font-weight: bold;
    background: white;
    color: black;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.bonus-icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Basic styling for kbd elements */
kbd {
    background: #e9ecef;
    border: 1px solid #adb5bd;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
    font-family: monospace;
    color: #495057;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* === GAME UPDATES STYLES === */
.game-updates-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.game-updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.latest-update-display {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.latest-update-content {
    color: white;
    flex-grow: 1;
    min-width: 0; /* Allow content to shrink */
}

.latest-update-message {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-update-time {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* === CHAT MODAL STYLES === */
.messages-container {
    background: #f8f9fa;
}

.message-item {
    transition: background-color 0.2s ease;
}

.message-item:hover {
    background-color: #f1f3f4;
}

.chat-message {
    background: white;
}

.game-update {
    background: #e3f2fd;
}

.message-text {
    word-wrap: break-word;
    line-height: 1.4;
}

.avatar {
    flex-shrink: 0;
}

.update-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .game-updates-container {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }
    
    .latest-update-display {
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .latest-update-message {
        font-size: 0.9rem;
    }
    
    .latest-update-time {
        font-size: 0.75rem;
    }
    
    #show-all-updates-btn {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* === FOOTER STYLES === */
.footer {
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

.footer a {
    transition: color 0.2s ease;
}

.footer a:hover {
    color: #007bff !important;
}

/* Ensure footer stays at bottom */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* === LANDING PAGE STYLES === */
.landing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.landing-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.landing-logo img {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.landing-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.landing-title {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #495057;
    text-align: center;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.landing-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

/* Download Links */
.download-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-card.web-version {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

.download-card.web-version:hover {
    box-shadow: 0 10px 30px rgba(108, 117, 125, 0.5);
}

.download-card i {
    font-size: 3.5rem;
    flex-shrink: 0;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.download-label {
    font-size: 0.875rem;
    opacity: 0.9;
    font-weight: 400;
}

.download-store {
    font-size: 1.5rem;
    font-weight: 700;
}

.download-note {
    font-size: 0.75rem;
    opacity: 0.8;
    font-style: italic;
    margin-top: 0.25rem;
}

/* Community Links */
.community-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.community-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-size: 1.125rem;
    font-weight: 600;
}

.community-link:hover {
    transform: translateX(10px);
    border-color: #ff6b35;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(247, 147, 30, 0.05) 100%);
}

.community-link i {
    font-size: 2rem;
    color: #ff6b35;
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.community-link:hover i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-content {
        padding: 2rem 1.5rem;
    }
    
    .landing-title {
        font-size: 2rem;
    }
    
    .landing-description {
        font-size: 1rem;
    }
    
    .download-links {
        grid-template-columns: 1fr;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .download-card i {
        font-size: 2.5rem;
    }
    
    .download-store {
        font-size: 1.25rem;
    }
    
    .community-link {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }
    
    .community-link i {
        font-size: 1.5rem;
        width: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}