/* =================================================================
   UNDERGROUND FARMER - SAVE/LOAD SYSTEM STYLES
   ================================================================= */

/* Save/Load Buttons */
.save-btn, .load-btn {
    background: linear-gradient(135deg, #654321, #8b4513);
    border: 2px solid #a0522d;
    border-radius: 8px;
    color: #f5deb3;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 12px;
    margin: 0 4px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.save-btn:hover, .load-btn:hover {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    border-color: #cd853f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.save-btn:active, .load-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Save button specific styling */
.save-btn {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    border-color: #4caf50;
}

.save-btn:hover {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    border-color: #66bb6a;
}

/* Load button specific styling */
.load-btn {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    border-color: #42a5f5;
}

.load-btn:hover {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    border-color: #64b5f6;
}

/* Icons */
.save-icon, .load-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Dialog Styles */
.save-load-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.save-load-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.save-load-content {
    position: relative;
    background: linear-gradient(135deg, #2c1810, #3d2317);
    border: 3px solid #8b4513;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: saveLoadDialogAppear 0.3s ease-out;
}

@keyframes saveLoadDialogAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Dialog Header */
.save-load-header {
    padding: 20px 24px 16px;
    border-bottom: 2px solid #654321;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3d2317, #4a2a1a);
    border-radius: 12px 12px 0 0;
}

.save-load-header h3 {
    margin: 0;
    color: #f5deb3;
    font-size: 20px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.save-load-header h3::before {
    content: '💾';
    font-size: 24px;
}

.save-load-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #f5deb3;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.save-load-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

/* Dialog Body */
.save-load-body {
    padding: 24px;
}

.save-load-option {
    margin-bottom: 16px;
}

.save-load-option:last-child {
    margin-bottom: 0;
}

/* Option Buttons */
.save-load-btn {
    width: 100%;
    background: linear-gradient(135deg, #654321, #8b4513);
    border: 2px solid #a0522d;
    border-radius: 12px;
    color: #f5deb3;
    cursor: pointer;
    padding: 16px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.save-load-btn:hover {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    border-color: #cd853f;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.save-load-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Browser option styling */
.save-load-btn.browser {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    border-color: #42a5f5;
}

.save-load-btn.browser:hover {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    border-color: #64b5f6;
}

/* File option styling */
.save-load-btn.file {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    border-color: #4caf50;
}

.save-load-btn.file:hover {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    border-color: #66bb6a;
}

/* Option Icons */
.option-icon {
    font-size: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Option Info */
.option-info {
    flex: 1;
}

.option-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.option-desc {
    font-size: 12px;
    color: #e0e0e0;
    opacity: 0.9;
    line-height: 1.4;
}

/* Dialog Footer */
.save-load-footer {
    padding: 16px 24px 20px;
    border-top: 2px solid #654321;
    background: linear-gradient(135deg, #2c1810, #3d2317);
    border-radius: 0 0 12px 12px;
}

.save-info {
    color: #deb887;
    font-size: 12px;
    text-align: center;
    opacity: 0.8;
}

#last-save-time {
    font-weight: bold;
    color: #f5deb3;
}

/* Messages */
.save-load-message {
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Reset Button in Settings */
.reset-progress-btn {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    border: 2px solid #e53935;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    padding: 12px 20px;
    margin-top: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.reset-progress-btn:hover {
    background: linear-gradient(135deg, #f44336, #e53935);
    border-color: #ef5350;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.reset-progress-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.reset-icon {
    font-size: 16px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Responsive Design */
@media (max-width: 600px) {
    .save-load-content {
        width: 95%;
        margin: 10px;
    }
    
    .save-load-header {
        padding: 16px 20px 12px;
    }
    
    .save-load-header h3 {
        font-size: 18px;
    }
    
    .save-load-body {
        padding: 20px;
    }
    
    .save-load-btn {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .option-icon {
        font-size: 28px;
    }
    
    .option-title {
        font-size: 15px;
    }
    
    .option-desc {
        font-size: 11px;
    }
    
    .save-btn, .load-btn {
        font-size: 12px;
        padding: 6px 10px;
        margin: 0 2px;
    }
    
    .save-icon, .load-icon {
        font-size: 14px;
    }
}

/* Slots Dialog Styles */
.slots-dialog .save-load-content {
    max-width: 800px;
    width: 95%;
}

.slots-content {
    min-height: 600px;
}

.slots-body {
    padding: 25px 30px;
}

.slots-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

/* Save Slot Styles */
.save-slot {
    background: linear-gradient(135deg, #2d1810, #3d2317);
    border: 3px solid #654321;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.save-slot:hover {
    border-color: #8b4513;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.save-slot.empty {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-color: #555555;
    opacity: 0.9;
}

.save-slot.occupied {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    border-color: #2196f3;
}

.save-slot.occupied:hover {
    border-color: #42a5f5;
    background: linear-gradient(135deg, #1976d2, #2196f3);
}

/* Slot Number */
.slot-number {
    background: rgba(0,0,0,0.7);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 25px;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

/* Slot Content */
.slot-content {
    flex: 1;
    margin-right: 20px;
}

.slot-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    opacity: 0.8;
}

.empty-icon {
    font-size: 40px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.empty-text {
    color: #ffffff;
    font-size: 18px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.slot-info {
    color: white;
}

.slot-date {
    font-size: 18px;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.slot-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slot-stats span {
    font-size: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.slot-level {
    color: #66bb6a !important;
}

.slot-coins {
    color: #ffc107 !important;
}

.slot-time {
    color: #42a5f5 !important;
}

/* Slot Actions */
.slot-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.slot-action-btn {
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

.slot-action-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

.slot-action-btn.save-btn:hover {
    background: rgba(76, 175, 80, 0.8);
    border-color: #4caf50;
}

.slot-action-btn.load-btn:hover {
    background: rgba(33, 150, 243, 0.8);
    border-color: #2196f3;
}

.slot-action-btn.delete-btn:hover {
    background: rgba(244, 67, 54, 0.8);
    border-color: #f44336;
}

.slot-disabled {
    color: #cccccc;
    font-size: 16px;
    text-align: center;
    padding: 12px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
}

/* Footer Options */
.slots-footer-options {
    border-top: 2px solid #654321;
    padding-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.option-btn {
    background: linear-gradient(135deg, #654321, #8b4513);
    border: 2px solid #a0522d;
    border-radius: 8px;
    color: #f5deb3;
    cursor: pointer;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.option-btn:hover {
    background: linear-gradient(135deg, #8b4513, #a0522d);
    border-color: #cd853f;
    transform: translateY(-1px);
}

.option-btn.file-save {
    background: linear-gradient(135deg, #2e7d32, #388e3c);
    border-color: #4caf50;
}

.option-btn.file-save:hover {
    background: linear-gradient(135deg, #388e3c, #4caf50);
    border-color: #66bb6a;
}

.option-btn.file-load {
    background: linear-gradient(135deg, #1976d2, #2196f3);
    border-color: #42a5f5;
}

.option-btn.file-load:hover {
    background: linear-gradient(135deg, #2196f3, #42a5f5);
    border-color: #64b5f6;
}

.option-icon {
    font-size: 16px;
}

/* Responsive Design for Slots */
@media (max-width: 768px) {
    .slots-container {
        gap: 15px;
    }
    
    .save-slot {
        min-height: 120px;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slot-number {
        width: 40px;
        height: 40px;
        font-size: 20px;
        margin-right: 0;
        margin-bottom: 15px;
        align-self: center;
    }
    
    .slot-content {
        margin-right: 0;
        text-align: center;
        width: 100%;
    }
    
    .slot-stats {
        align-items: center;
    }
    
    .slot-stats span {
        font-size: 14px;
        justify-content: center;
    }
    
    .slot-actions {
        margin-top: 15px;
        justify-content: center;
        width: 100%;
    }
    
    .slot-action-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .slots-footer-options {
        flex-direction: column;
        align-items: center;
    }
    
    .option-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .slots-dialog .save-load-content {
        width: 98%;
        margin: 1%;
    }
    
    .slots-body {
        padding: 16px;
    }
    
    .save-slot {
        min-height: 90px;
        padding: 10px;
    }
    
    .slot-date {
        font-size: 11px;
    }
    
    .slot-stats span {
        font-size: 9px;
    }
    
    .empty-icon {
        font-size: 20px;
    }
    
    .empty-text {
        font-size: 11px;
    }
}

/* Dark theme adjustments */
@media (prefers-color-scheme: dark) {
    .save-load-content {
        background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
        border-color: #444444;
    }
    
    .save-load-header {
        background: linear-gradient(135deg, #2d2d2d, #3a3a3a);
        border-color: #444444;
    }
    
    .save-load-footer {
        background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
        border-color: #444444;
    }
    
    .save-slot.empty {
        background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
        border-color: #444444;
    }
    
    .save-slot {
        background: linear-gradient(135deg, #2d2d2d, #3a3a3a);
        border-color: #555555;
    }
} 