/* Erzeni Giveaway Frontend Styles */

.erzeni-register-form,
.erzeni-receipt-upload,
.erzeni-contest,
.erzeni-streaming {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.erzeni-register-form h2,
.erzeni-receipt-upload h2,
.erzeni-contest h2,
.erzeni-streaming h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

button[type="submit"],
.vote-btn {
    background: #e74c3c;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
}

button[type="submit"]:hover,
.vote-btn:hover {
    background: #c0392b;
}

#erzeni-register-message,
#erzeni-receipt-message,
#erzeni-contest-entry-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

#erzeni-register-message.success,
#erzeni-receipt-message.success,
#erzeni-contest-entry-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#erzeni-register-message.error,
#erzeni-receipt-message.error,
#erzeni-contest-entry-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.erzeni-points-display {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.points-total,
.points-monthly {
    font-size: 18px;
    margin: 10px 0;
}

.points-total strong,
.points-monthly strong {
    color: #e74c3c;
    font-size: 24px;
}

.contest-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contest-entry {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.contest-entry img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
}

.youtube-stream,
.facebook-stream,
.twitch-stream {
    margin: 20px 0;
}

.streaming-schedule {
    margin-top: 30px;
}

.streaming-schedule ul {
    list-style: none;
    padding: 0;
}

.streaming-schedule li {
    padding: 10px;
    margin: 5px 0;
    background: #f8f9fa;
    border-left: 3px solid #e74c3c;
}

/* Profile Page */
.erzeni-profile {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Profile Tabs */
.erzeni-profile-tabs {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid #ddd;
}

.profile-tab-button {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.profile-tab-button:hover {
    color: #e74c3c;
}

.profile-tab-button.active {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.profile-tab-content {
    display: none;
    padding: 20px 0;
}

.profile-tab-content.active {
    display: block;
}

.profile-info {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row strong {
    color: #2c3e50;
    min-width: 150px;
}

.erzeni-receipt-upload-section {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.erzeni-receipt-upload-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.points-history {
    margin-top: 30px;
}

.points-history table {
    width: 100%;
    border-collapse: collapse;
}

.points-history th,
.points-history td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.points-history th {
    background: #f8f9fa;
    font-weight: 600;
}

.profile-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.profile-actions .button {
    background: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.profile-actions .button:hover {
    background: #c0392b;
}

.profile-edit-section {
    margin-bottom: 20px;
}

.profile-edit-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.profile-edit-form h3 {
    margin-top: 0;
    color: #2c3e50;
}

.profile-edit-form .form-group {
    margin-bottom: 15px;
}

.profile-edit-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #34495e;
}

.profile-edit-form input[type="text"],
.profile-edit-form input[type="email"],
.profile-edit-form input[type="tel"],
.profile-edit-form input[type="number"],
.profile-edit-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.profile-edit-form small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

#profile-update-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    display: none;
}

#profile-update-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#profile-update-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.erzeni-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 4px;
}

.erzeni-message.warning a {
    color: #e74c3c;
    text-decoration: underline;
}

.youtube-info,
.facebook-info,
.twitch-info {
    text-align: center;
    margin-top: 10px;
}

.youtube-info a,
.facebook-info a,
.twitch-info a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 600;
}

.youtube-info a:hover,
.facebook-info a:hover,
.twitch-info a:hover {
    text-decoration: underline;
}

/* Login Form */
.erzeni-login-form,
.erzeni-verify-email {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.erzeni-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.erzeni-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.erzeni-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.erzeni-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.login-link,
.register-link,
.resend-verification {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

.login-link a,
.register-link a,
.resend-verification a {
    color: #e74c3c;
    text-decoration: none;
}

.login-link a:hover,
.register-link a:hover,
.resend-verification a:hover {
    text-decoration: underline;
}

.optional {
    color: #999;
    font-weight: normal;
}

.erzeni-already-logged-in {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.erzeni-already-logged-in .button {
    margin: 10px;
    display: inline-block;
}

.erzeni-login-required {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.erzeni-login-required .button {
    margin: 10px;
    display: inline-block;
}

.button-secondary {
    background: #95a5a6;
    color: #fff;
}

.button-secondary:hover {
    background: #7f8c8d;
}

/* Contests & Products Section in Profile */
.contests-products-section {
    padding: 20px 0;
}

.contest-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.contest-section h3 {
    margin-top: 0;
    color: #2c3e50;
}

.contest-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.contest-buttons .button {
    flex: 1;
    min-width: 150px;
    text-align: center;
    padding: 12px 20px;
    text-decoration: none;
    display: inline-block;
}

.contest-buttons .button-primary {
    background: #e74c3c;
    color: #fff;
    border: none;
}

.contest-buttons .button-primary:hover {
    background: #c0392b;
}

.redeemable-products-section {
    margin-top: 30px;
}

.redeemable-products-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.redeem-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.redeem-info .user-points {
    color: #e74c3c;
    font-size: 24px;
    font-weight: bold;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: #fff;
}

.product-card h4 {
    margin-top: 0;
    color: #2c3e50;
}

.product-card .product-points {
    font-size: 18px;
    color: #e74c3c;
    margin: 10px 0;
}

.redeem-product-btn {
    background: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s;
}

.redeem-product-btn:hover {
    background: #c0392b;
}

.insufficient-points {
    color: #999;
    font-size: 14px;
    margin-top: 10px;
    font-style: italic;
}

#product-redeem-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.redeem-modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.redeem-modal-content h3 {
    margin-top: 0;
    color: #2c3e50;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.cancel-redeem-btn {
    background: #95a5a6;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.cancel-redeem-btn:hover {
    background: #7f8c8d;
}

.redeem-submit-btn {
    background: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    flex: 1;
}

.redeem-submit-btn:hover {
    background: #c0392b;
}

.redeem-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Points info in redeem modal */
.points-info {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
}

.points-info strong {
    color: #2c3e50;
}

.points-info span {
    color: #e74c3c;
    font-weight: 600;
}

.user-points-display {
    color: #e74c3c;
    font-size: 18px;
    font-weight: bold;
}

#redeem-quantity {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 5px;
}

#redeem-city,
#redeem-neighborhood,
#redeem-shipping-phone,
#redeem-address-line1,
#redeem-address-line2 {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 5px;
}

.redeem-modal-content .form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
    font-style: italic;
}

#erzeni-redeem-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
    font-size: 14px;
}

#erzeni-redeem-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#erzeni-redeem-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

