/* css/account.css */
body {
    background-color: #141414; /* Ensure consistent background with the rest of the site */
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Consistent font */
}

/* Account Header */
.account-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.home-btn {
  background: linear-gradient(135deg, #e50914, #ff4757);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
  border: 2px solid transparent;
}

.home-btn:hover {
  background: linear-gradient(135deg, #c20812, #e63946);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.home-btn i {
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .account-header {
    flex-direction: column;
    text-align: center;
  }
  
  .account-header h1 {
    order: -1;
    margin-bottom: 15px;
  }
}

.account-page-container {
    max-width: 800px;
    margin: 80px auto 40px auto; /* Navbar height (approx 60px) + 20px top margin */
    padding: 30px;
    background-color: #1c1c1c;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-height: calc(100vh - 180px); /* Adjust if footer height changes */
}

.account-page-container h1 {
    color: #e50914; /* JFlix primary red */
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em; /* Slightly adjusted size */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-page-container h2 {
    color: #f5f5f1;
    border-bottom: 2px solid #333; /* Subtler border */
    padding-bottom: 10px;
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.6em; /* Slightly adjusted size */
}

#account-details p, 
#password-reset-section p:not(#password-reset-message) {
    line-height: 1.7;
    margin-bottom: 12px;
    color: #b3b3b3; /* Softer text color */
    font-size: 1em;
}

#account-details p strong {
    color: #e0e0e0; /* Brighter label */
    min-width: 120px; /* Align values somewhat */
    display: inline-block;
}

#account-details span {
    color: #f5f5f1;
}

#account-details, #password-reset-section {
    background-color: #252525; /* Slightly different card background */
    padding: 25px 30px; /* More horizontal padding */
    border-radius: 6px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

#request-password-reset-button {
    background-color: #e50914;
    color: white;
    padding: 10px 18px; /* Adjusted padding */
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95em; /* Adjusted size */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: inline-block;
    margin-top: 15px; /* More space above */
    text-transform: uppercase;
}

#request-password-reset-button:hover {
    background-color: #f40612;
    transform: translateY(-1px); /* Subtle lift effect */
}

#request-password-reset-button:active {
    transform: translateY(0px);
}


#password-reset-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

#password-reset-message.success {
    background-color: #28a745; /* Green for success */
    color: white;
    border: 1px solid #1e7e34;
}

#password-reset-message.error {
    background-color: #dc3545; /* Red for error */
    color: white;
    border: 1px solid #b21f2d;
}

/* Responsive adjustments for Premium Ad Banner */
@media (max-width: 768px) {
    .premium-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .premium-cta-button,
    .payment-btn {
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .premium-ad-banner h3 {
        font-size: 1.5em;
    }

    .premium-ad-banner p {
        font-size: 1em;
    }
}

/* Responsive adjustments for account page */
@media (max-width: 768px) {
    .account-page-container {
        margin: 70px 15px 30px 15px; /* Adjusted top margin for smaller navbar */
        padding: 20px;
    }

    .account-page-container h1 {
        font-size: 1.8em;
    }

    .account-page-container h2 {
        font-size: 1.4em;
    }

    #account-details, #password-reset-section {
        padding: 20px;
    }

    #account-details p strong {
        min-width: auto; /* Remove fixed width for labels on small screens */
        display: block; /* Stack labels above values */
        margin-bottom: 3px;
    }
}

@media (max-width: 480px) {
    .account-page-container h1 {
        font-size: 1.6em;
    }
    .account-page-container h2 {
        font-size: 1.3em;
    }
    #request-password-reset-button {
        width: 100%; /* Full width button on very small screens */
        padding: 12px;
    }
}

/* Premium Ad Banner */
.premium-ad-banner {
    background: linear-gradient(135deg, #e50914, #b40000); /* JFlix red gradient */
    color: #ffffff;
    padding: 25px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #ff0a16;
}

.premium-ad-banner h3 {
    font-size: 1.8em;
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.premium-ad-banner p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly softer white for the paragraph */
}

.premium-cta-button {
    display: inline-block;
    background-color: #ffffff; /* White button */
    color: #e50914; /* JFlix red text */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    border: none;
}

.premium-cta-button:hover {
    background-color: #f0f0f0; /* Slightly off-white on hover */
    color: #b40000; /* Darker red text on hover */
    transform: translateY(-2px) scale(1.02); /* Lift and slightly enlarge */
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.premium-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.buy-voucher {
    background-color: #2d2d2d;
    border: 2px solid #e50914;
    color: #ffffff;
}

.buy-voucher:hover {
    background-color: #3a3a3a;
    color: #ffffff;
}

.premium-cta-button:active {
    transform: translateY(0px) scale(1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Responsive adjustments for premium ad banner */

/* Redeem Voucher Section */
#redeem-voucher-section {
    background-color: #222; /* Slightly different background for sectioning */
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#redeem-voucher-section h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

#redeem-voucher-section p {
    font-size: 0.95em;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#redeem-voucher-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#redeem-voucher-button.loading .loader {
    display: block;
}

#redeem-voucher-button.loading .button-text {
    display: none;
}

.voucher-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.voucher-input-group input[type="text"] {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #555;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 1em;
}

.voucher-input-group input[type="text"]::placeholder {
    color: #888;
}

.voucher-input-group .auth-nav-btn { /* Re-using existing button style */
    padding: 10px 20px;
    white-space: nowrap; /* Prevent button text from wrapping */
}

#voucher-message {
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
}

#voucher-message.success {
    background-color: #28a745; /* Green for success */
    color: white;
    border: 1px solid #1e7e34;
}

#voucher-message.error {
    background-color: #dc3545; /* Red for error */
    color: white;
    border: 1px solid #b21f2d;
}

/* Responsive adjustments for voucher section */
@media (max-width: 600px) {
    .voucher-input-group {
        flex-direction: column;
    }
    .voucher-input-group .auth-nav-btn {
        width: 100%;
    }
}

/* Responsive adjustments for premium ad banner */
@media (max-width: 480px) {
    .premium-ad-banner h3 {
        font-size: 1.5em;
    }
    .premium-ad-banner p {
        font-size: 1em;
    }
    .premium-cta-button {
        padding: 10px 20px;
        font-size: 0.9em;
        width: calc(100% - 40px); /* Adjust width for padding */
        margin: 0 auto;
    }
}

/* Styles for account status badge */
#account-status {
    display: inline-block;
    padding: 6px 14px; /* Slightly adjusted padding */
    border-radius: 16px; /* Pill shape */
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    min-width: 85px; /* Ensure a minimum width */
    border: 1px solid transparent; /* Base border */
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    margin-left: 5px; /* Add some space from the "Status:" label */
}

.status-premium {
    background: linear-gradient(135deg, #f0c14b, #D4AF37, #B8860B); /* Gold gradient */
    color: #333; /* Darker text for contrast on gold */
    box-shadow: 0 2px 5px rgba(0,0,0,0.25); /* Slightly enhanced shadow */
    border-color: #A87800; /* Darker gold border */
    text-shadow: 0 1px 1px rgba(255,255,255,0.2); /* Subtle highlight on text */
}

.status-free {
    background-color: #6c757d; /* Grey for free */
    color: white;
    border-color: #5a6268;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.status-error, /* Grouping error with expired for similar visual warning */
.status-expired {
    background-color: #dc3545; /* Red for expired/error */
    color: white;
    border-color: #c82333;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.status-loading {
    background-color: #e9ecef; /* Lighter grey for loading */
    color: #495057;
    border-color: #ced4da;
}
