/* Unsubscribe Page Styles */
.unsubscribe-section {
    padding: 150px 0 100px;
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.unsubscribe-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    z-index: 1;
}

.unsubscribe-header {
    margin-bottom: 40px;
}

.unsubscribe-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #673ab7, #512da8);
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.unsubscribe-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2.5rem;
}

.unsubscribe-description {
    color: var(--text-color);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: left;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
}

.message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #c62828;
    border-left: 4px solid #c62828;
}

.message.info {
    background-color: rgba(33, 150, 243, 0.2);
    color: #0288d1;
    border-left: 4px solid #0288d1;
}

.message-icon {
    width: 20px;
    height: 20px;
}

.unsubscribe-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.unsubscribe-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.unsubscribe-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.input-icon {
    width: 18px;
    height: 18px;
}

.unsubscribe-form input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid var(--gray);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    color: var(--text-color);
}

.unsubscribe-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(94, 53, 177, 0.2);
}

.unsubscribe-form input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.unsubscribe-button {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: var(--white);
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.unsubscribe-button:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.back-home {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gray);
}

/* Dark mode - enhance contrast for border */
[data-theme="dark"] .back-home,
.dark-theme .back-home {
    border-top: 1px solid #555555 !important;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.back-home-link:hover {
    color: var(--primary-dark);
    padding-left: 5px;
}

.button-icon {
    width: 18px;
    height: 18px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .unsubscribe-section {
        padding: 130px 0 70px;
    }
    
    .unsubscribe-container {
        padding: 50px 30px;
        margin: 25px;
    }
    
    .unsubscribe-title {
        font-size: 2.2rem;
    }
    
    .unsubscribe-description {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .unsubscribe-section {
        padding: 120px 0 60px;
    }
    
    .unsubscribe-container {
        padding: 40px 25px;
        margin: 20px;
    }
    
    .unsubscribe-header {
        margin-bottom: 30px;
    }
    
    .unsubscribe-title {
        font-size: 2rem;
    }
    
    .unsubscribe-description {
        font-size: 1rem;
    }
    
    .unsubscribe-form {
        gap: 20px;
    }
    
    .unsubscribe-button {
        padding: 14px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .unsubscribe-section {
        padding: 100px 0 40px;
    }
    
    .unsubscribe-container {
        padding: 30px 20px;
        margin: 15px;
    }
    
    .unsubscribe-icon {
        width: 60px;
        height: 60px;
        padding: 10px;
    }
    
    .unsubscribe-title {
        font-size: 1.75rem;
    }
    
    .unsubscribe-description {
        font-size: 0.95rem;
    }
    
    .unsubscribe-form {
        gap: 18px;
    }
    
    .unsubscribe-button {
        padding: 12px 18px;
        font-size: 0.95rem;
        gap: 8px;
    }
    
    .back-home-link {
        font-size: 0.95rem;
        gap: 6px;
    }
    
    .button-icon {
        width: 16px;
        height: 16px;
    }
}

/* Dark mode - make unsubscribe section follow dark styling */
[data-theme="dark"] .unsubscribe-section,
.dark-theme .unsubscribe-section {
    background-color: #333333 !important;
}

[data-theme="dark"] .unsubscribe-container,
.dark-theme .unsubscribe-container {
    background-color: #222222 !important;
    color: #ffffff !important;
}

/* Unsubscribe header elements in dark mode */
[data-theme="dark"] .unsubscribe-title,
.dark-theme .unsubscribe-title {
    color: #ffffff !important;
}

[data-theme="dark"] .unsubscribe-description,
.dark-theme .unsubscribe-description {
    color: #ffffff !important;
}

/* Form elements in unsubscribe section */
[data-theme="dark"] .unsubscribe-form label,
.dark-theme .unsubscribe-form label {
    color: #ffffff !important;
}

[data-theme="dark"] .unsubscribe-form input,
.dark-theme .unsubscribe-form input {
    background-color: #3a3a3a !important;
    color: #ffffff !important;
    border: 2px solid #555555 !important;
}

[data-theme="dark"] .unsubscribe-form input::placeholder,
.dark-theme .unsubscribe-form input::placeholder {
    color: #aaaaaa !important;
    opacity: 0.7 !important;
}

/* Message elements */
[data-theme="dark"] .message,
.dark-theme .message {
    color: #ffffff !important;
}

[data-theme="dark"] .message.success,
.dark-theme .message.success {
    background-color: rgba(76, 175, 80, 0.2) !important;
    color: #a5d6a7 !important;
}

[data-theme="dark"] .message.error,
.dark-theme .message.error {
    background-color: rgba(244, 67, 54, 0.2) !important;
    color: #ef9a9a !important;
}

[data-theme="dark"] .message.info,
.dark-theme .message.info {
    background-color: rgba(33, 150, 243, 0.2) !important;
    color: #90caf9 !important;
}

/* Unsubscribe button */
[data-theme="dark"] .unsubscribe-button,
.dark-theme .unsubscribe-button {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%) !important;
    color: var(--white) !important;
}

[data-theme="dark"] .unsubscribe-button:hover,
.dark-theme .unsubscribe-button:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%) !important;
}

/* Back to home link */
[data-theme="dark"] .back-home-link,
.dark-theme .back-home-link {
    color: #ffffff !important;
}

[data-theme="dark"] .back-home-link:hover,
.dark-theme .back-home-link:hover {
    color: var(--accent-color) !important;
}

/* Back home section in dark mode */
[data-theme="dark"] .back-home,
.dark-theme .back-home {
    border-top: 1px solid #555555 !important;
}

/* Icons and other elements */
[data-theme="dark"] .unsubscribe-icon,
.dark-theme .unsubscribe-icon {
    background: linear-gradient(135deg, #673ab7, #512da8) !important;
}

/* Ensure all icons maintain visibility */
[data-theme="dark"] .input-icon,
[data-theme="dark"] .button-icon,
[data-theme="dark"] .message-icon,
.dark-theme .input-icon,
.dark-theme .button-icon,
.dark-theme .message-icon {
    filter: brightness(0) invert(1) !important;
}