/* ============================================================
   CyberFoks - Temp Mail Page
   ============================================================ */

.temp-mail-section {
    padding: 130px 20px 80px;
    background: #0a1628;
    min-height: 100vh;
}

.temp-mail-section .container {
    max-width: 900px;
    margin: 0 auto;
}

/* ========== HEADER ========== */
.temp-mail-header {
    text-align: center;
    margin-bottom: 40px;
}

.temp-badge {
    display: inline-block;
    background: rgba(0, 204, 102, 0.15);
    border: 1px solid rgba(0, 204, 102, 0.3);
    color: #00cc66;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.temp-badge i {
    margin-right: 6px;
}

.temp-mail-header .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}

.temp-mail-header .section-subtitle {
    color: #667799;
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========== EMAIL BOX ========== */
.email-box {
    background: #152238;
    border: 1px solid #1a3a5c;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.email-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1a73e8, transparent);
    opacity: 0;
    transition: all 0.3s ease;
}

.email-box:hover::before {
    opacity: 1;
}

.email-box:hover {
    border-color: #1a73e8;
    box-shadow: 0 0 40px rgba(26, 115, 232, 0.1);
}

.email-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.email-box-header h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

.email-box-header h3 i {
    color: #1a73e8;
    margin-right: 8px;
}

.btn-icon {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: #ff4757;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(255, 71, 87, 0.3);
    transform: scale(1.05);
}

.hint {
    color: #667799;
    font-size: 0.9rem;
    margin-bottom: 18px;
    text-align: center;
}

/* Email Display */
.email-display {
    background: #0a0f1e;
    border: 2px solid #1a3a5c;
    border-radius: 12px;
    padding: 18px 20px;
    margin: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.3s ease;
}

.email-display:hover {
    border-color: #1a73e8;
    box-shadow: 0 0 25px rgba(26, 115, 232, 0.15);
}

.email-text {
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    font-weight: 600;
    word-break: break-all;
    flex: 1;
    letter-spacing: 0.5px;
}

.btn-copy {
    background: rgba(26, 115, 232, 0.15);
    border: 1px solid rgba(26, 115, 232, 0.3);
    color: #64b5f6;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.btn-copy:hover {
    background: rgba(26, 115, 232, 0.3);
    color: #ffffff;
    transform: scale(1.05);
}

/* TTL Info */
.ttl-info {
    color: #ffc107;
    font-size: 0.85rem;
    margin: 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-temp {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-width: 160px;
}

.btn-temp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: all 0.5s ease;
}

.btn-temp:hover::before {
    left: 200%;
}

.btn-temp:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-temp.primary {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #ffffff;
}

.btn-temp.primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(26, 115, 232, 0.4);
}

.btn-temp.success {
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%);
    color: #ffffff;
}

.btn-temp.success:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 204, 102, 0.4);
}

.btn-temp.danger {
    background: linear-gradient(135deg, #ff4757 0%, #cc2233 100%);
    color: #ffffff;
    flex: 0;
    min-width: auto;
}

/* ========== INBOX CONTAINER ========== */
.inbox-container {
    background: #152238;
    border: 1px solid #1a3a5c;
    border-radius: 16px;
    padding: 25px;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.inbox-container:hover {
    border-color: #1a73e8;
}

.inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #1a3a5c;
    flex-wrap: wrap;
    gap: 12px;
}

.inbox-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
}

.inbox-header h3 i {
    color: #1a73e8;
    margin-right: 10px;
}

.inbox-badges {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* Auto Refresh Badge */
.auto-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 65, 0.1);
    border: 1px solid rgba(0, 255, 65, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    color: #00ff41;
    font-size: 0.75rem;
    font-weight: 600;
}

.auto-refresh-badge .dot {
    width: 8px;
    height: 8px;
    background: #00ff41;
    border-radius: 50%;
    animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge.status-active {
    background: rgba(26, 115, 232, 0.15);
    color: #64b5f6;
    border: 1px solid rgba(26, 115, 232, 0.3);
}

/* No Messages */
.no-messages {
    text-align: center;
    padding: 50px 20px;
    color: #556688;
}

.no-messages i {
    font-size: 3.5rem;
    margin-bottom: 15px;
    display: block;
    color: #1a3a5c;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.no-messages p {
    font-size: 0.95rem;
}

/* Message Items */
.message-item {
    background: #0a0f1e;
    border: 1px solid #1a3a5c;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInMessage 0.4s ease forwards;
}

@keyframes slideInMessage {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1a73e8;
    opacity: 0;
    transition: all 0.3s ease;
}

.message-item:hover::before {
    opacity: 1;
}

.message-item:hover {
    border-color: #1a73e8;
    transform: translateX(5px);
    box-shadow: 0 5px 25px rgba(26, 115, 232, 0.15);
}

.message-item .sender {
    color: #1a73e8;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
}

.message-item .subject {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 8px 0;
    font-weight: 500;
    word-break: break-word;
}

.message-item .time {
    color: #556688;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Message View */
.message-view {
    background: #0a0f1e;
    border: 1px solid #1a3a5c;
    border-radius: 12px;
    padding: 25px;
    margin-top: 20px;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-view .field {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.message-view .field:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.message-view .label {
    color: #556688;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    font-weight: 600;
}

.message-view .value {
    color: #ffffff;
    font-size: 0.92rem;
    word-break: break-word;
}

.message-view .body-content {
    color: #c8d6e5;
    font-size: 0.92rem;
    line-height: 1.7;
    white-space: pre-wrap;
    background: #050810;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #1a3a5c;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
}

.message-view .body-content::-webkit-scrollbar {
    width: 6px;
}

.message-view .body-content::-webkit-scrollbar-track {
    background: transparent;
}

.message-view .body-content::-webkit-scrollbar-thumb {
    background: #1a3a5c;
    border-radius: 3px;
}

/* ========== POPUP ========== */
.popup-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(26, 115, 232, 0.4);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    transform: translateX(500px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 350px;
}

.popup-notification.show {
    transform: translateX(0);
}

.popup-notification.success {
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%);
    box-shadow: 0 10px 40px rgba(0, 204, 102, 0.4);
}

.popup-notification.error {
    background: linear-gradient(135deg, #ff4757 0%, #cc2233 100%);
    box-shadow: 0 10px 40px rgba(255, 71, 87, 0.4);
}

.popup-notification i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.popup-content {
    flex: 1;
    min-width: 0;
}

.popup-title {
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 3px;
}

.popup-message {
    font-size: 0.82rem;
    opacity: 0.95;
    word-break: break-word;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .temp-mail-section {
        padding: 100px 15px 60px;
    }

    .temp-mail-header .section-title {
        font-size: 2rem;
    }

    .temp-mail-header .section-subtitle {
        font-size: 0.95rem;
    }

    .email-box {
        padding: 22px 18px;
    }

    .email-display {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
    }

    .email-text {
        text-align: center;
        font-size: 0.95rem;
    }

    .btn-copy {
        width: 100%;
        height: 40px;
    }

    .btn-temp {
        width: 100%;
        min-width: auto;
    }

    .btn-group {
        flex-direction: column;
    }

    .inbox-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .inbox-badges {
        width: 100%;
        justify-content: flex-start;
    }

    .popup-notification {
        top: 90px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .message-view {
        padding: 18px;
    }

    .message-view .body-content {
        padding: 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .temp-mail-header .section-title {
        font-size: 1.7rem;
    }

    .temp-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .email-box {
        padding: 18px 15px;
    }

    .email-box-header h3 {
        font-size: 1rem;
    }

    .email-text {
        font-size: 0.8rem;
    }

    .btn-temp {
        padding: 12px 18px;
        font-size: 0.88rem;
    }

    .inbox-container {
        padding: 18px 15px;
    }

    .inbox-header h3 {
        font-size: 1.05rem;
    }

    .message-item {
        padding: 12px 15px;
    }

    .message-item .sender {
        font-size: 0.82rem;
    }

    .message-item .subject {
        font-size: 0.88rem;
    }
}