/* Modal and Popup Styles */

/* Base modal styles */
.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    margin: 0 0 1rem 0;
    color: #ff6b00;
}

.modal-content p {
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

/* Low-end device modal styles */
.low-end-device-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.low-end-device-content {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    color: white;
    border: 2px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.detailed-content {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

.warning-icon {
    font-size: 3rem;
    color: #ff6b00;
    text-align: center;
}

.low-end-device-content h2 {
    color: #ff6b00;
    text-align: center;
    margin: 1rem 0;
    font-size: 1.5rem;
}

.low-end-device-content h3 {
    color: #ff8f00;
    margin: 1rem 0 0.5rem 0;
    font-size: 1.2rem;
}

.warning-message {
    text-align: center;
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.specs-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.current-specs {
    margin: 1rem 0;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.spec-item.insufficient {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.spec-item.sufficient {
    color: #51cf66;
    background-color: rgba(81, 207, 102, 0.1);
}

.spec-label {
    font-weight: bold;
}

.spec-value {
    color: #ccc;
}

.spec-status {
    font-weight: bold;
}

.details-link {
    color: #ff6b00;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
    margin: 1rem 0;
    transition: color 0.3s ease;
}

.details-link:hover {
    color: #ff8f00;
}

.close-button {
    background: linear-gradient(135deg, #666, #555);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.close-button:hover {
    background: linear-gradient(135deg, #777, #666);
    transform: translateY(-1px);
}

.low-end-device-modal.detailed-modal {
    align-items: flex-start;
}

.low-end-device-modal.detailed-modal .low-end-device-content {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.details-container {
    margin-top: 1rem;
}

.requirements-section,
.your-specs-section,
.recommendation-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.requirements-section h3,
.your-specs-section h3,
.recommendation-section h3 {
    color: #ff8f00;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.requirements-section ul,
.your-specs-section ul {
    list-style: none;
    padding: 0;
}

.requirements-section li,
.your-specs-section li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.your-specs-section li.insufficient {
    color: #ff6b6b;
}

.your-specs-section li.sufficient {
    color: #51cf66;
}

.recommendation-section p {
    line-height: 1.6;
    color: #ccc;
}

/* Low storage modal */
.low-storage-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.low-storage-content {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    color: white;
    border: 2px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.streak-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 107, 0, 0.3);
}

.streak-title {
    font-size: 1.8rem;
    color: #ff6b00;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.streak-counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.streak-number {
    background: linear-gradient(135deg, #ff6b00, #ff8f00);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-day {
    color: #ccc;
    font-size: 1rem;
}

.warning-section {
    margin: 1.5rem 0;
}

.warning-title {
    color: #ff6b00;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.warning-message {
    text-align: center;
    margin: 1rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.warning-details {
    background-color: rgba(255, 107, 0, 0.1);
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #ff6b00;
}

.tips-section {
    margin: 1.5rem 0;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.tips-section h3 {
    color: #ff8f00;
    margin-bottom: 0.8rem;
}

.tips-section p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.tips-section ul {
    list-style: none;
    padding-left: 1rem;
}

.tips-section li {
    margin: 0.5rem 0;
    position: relative;
}

.ram-note {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
    text-align: center;
    margin: 0.5rem 0;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.ram-circle,
.storage-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto;
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    border: 3px solid #ff6b00;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 143, 0, 0.1));
}

.storage-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.storage-popup-content {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 24px;
    max-width: 400px;
    text-align: center;
}

.storage-popup-content h2 {
    color: white;
    font-size: 24px;
    margin: 0 0 16px 0;
}

.storage-popup-content p {
    color: white;
    font-size: 16px;
    margin: 8px 0;
    line-height: 1.4;
}

.storage-popup-buttons {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.storage-popup-buttons button {
    padding: 8px 32px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.storage-popup-buttons button:hover {
    opacity: 0.9;
}

.storage-popup-buttons .button1 {
    background: #ff6b00;
    color: white;
} 