/* RateEe - Theme-specific Styles */

/* Dark theme specific overrides */
.theme-dark {
    /* Override any light theme specific styles */
}

.theme-dark .hero-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-dark .stat-number {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Theme transition animations */
* {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Theme toggle button animation */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
}

/* Language switcher theme styles */
.language-switcher select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

.theme-dark .language-switcher select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23b3b3b3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Custom scrollbar for dark theme */
.theme-dark ::-webkit-scrollbar {
    width: 8px;
}

.theme-dark ::-webkit-scrollbar-track {
    background: var(--surface-color);
}

.theme-dark ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.theme-dark ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Light theme scrollbar */
.theme-light ::-webkit-scrollbar {
    width: 8px;
}

.theme-light ::-webkit-scrollbar-track {
    background: var(--surface-color);
}

.theme-light ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.theme-light ::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Theme-specific form styles */
.theme-dark .form-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 64, 129, 0.1);
}

.theme-light .form-input:focus {
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

/* Theme-specific button hover effects */
.theme-dark .btn-primary:hover {
    background: linear-gradient(135deg, #e91e63, #ff4081);
}

.theme-light .btn-primary:hover {
    background: linear-gradient(135deg, #c2185b, #e91e63);
}

/* Theme-specific card hover effects */
.theme-dark .card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 64, 129, 0.1);
}

.theme-light .card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(233, 30, 99, 0.1);
}

/* Theme-specific feature card icons */
.theme-dark .feature-icon {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.3);
}

.theme-light .feature-icon {
    background: var(--gradient-primary);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Theme-specific navigation link hover */
.theme-dark .nav-link:hover {
    background: rgba(255, 64, 129, 0.1);
}

.theme-light .nav-link:hover {
    background: rgba(233, 30, 99, 0.1);
}

/* Theme-specific alert styles */
.theme-dark .alert-success {
    background-color: rgba(21, 87, 36, 0.2);
    border-color: rgba(195, 230, 203, 0.3);
    color: #4caf50;
}

.theme-dark .alert-error {
    background-color: rgba(114, 28, 36, 0.2);
    border-color: rgba(245, 198, 203, 0.3);
    color: #f44336;
}

.theme-dark .alert-warning {
    background-color: rgba(133, 100, 4, 0.2);
    border-color: rgba(255, 234, 167, 0.3);
    color: #ff9800;
}

.theme-dark .alert-info {
    background-color: rgba(12, 84, 96, 0.2);
    border-color: rgba(190, 229, 235, 0.3);
    color: #2196f3;
}

/* Theme-specific loading animation */
.theme-dark .loading {
    border-color: var(--border-color);
    border-top-color: var(--primary-color);
}

.theme-light .loading {
    border-color: var(--border-color);
    border-top-color: var(--primary-color);
}

/* Theme-specific floating cards animation */
.theme-dark .card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
}

.theme-light .card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
}

/* Theme-specific header shadow */
.theme-dark .header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.theme-light .header {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Theme-specific footer border */
.theme-dark .footer {
    border-top-color: var(--border-color);
}

.theme-light .footer {
    border-top-color: var(--border-color);
}

/* Theme-specific section backgrounds */
.theme-dark .features {
    background: var(--surface-color);
}

.theme-light .features {
    background: var(--surface-color);
}

/* Theme-specific stats section */
.theme-dark .stats {
    background: var(--background-color);
}

.theme-light .stats {
    background: var(--background-color);
}

/* Theme-specific hero section */
.theme-dark .hero {
    background: var(--background-color);
}

.theme-light .hero {
    background: var(--background-color);
}

/* Theme-specific main content */
.theme-dark .main {
    background: var(--background-color);
}

.theme-light .main {
    background: var(--background-color);
}

/* Theme-specific form select styling */
.theme-dark .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23b3b3b3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

.theme-light .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Theme-specific card header and footer borders */
.theme-dark .card-header,
.theme-dark .card-footer {
    border-color: var(--border-color);
}

.theme-light .card-header,
.theme-light .card-footer {
    border-color: var(--border-color);
}

/* Theme-specific border utilities */
.theme-dark .border {
    border-color: var(--border-color);
}

.theme-light .border {
    border-color: var(--border-color);
}

/* Theme-specific shadow utilities */
.theme-dark .shadow {
    box-shadow: var(--shadow);
}

.theme-light .shadow {
    box-shadow: var(--shadow);
}

.theme-dark .shadow-lg {
    box-shadow: var(--shadow-hover);
}

.theme-light .shadow-lg {
    box-shadow: var(--shadow-hover);
}

/* Theme-specific background utilities */
.theme-dark .bg-primary {
    background-color: var(--primary-color);
}

.theme-light .bg-primary {
    background-color: var(--primary-color);
}

.theme-dark .bg-secondary {
    background-color: var(--secondary-color);
}

.theme-light .bg-secondary {
    background-color: var(--secondary-color);
}

.theme-dark .bg-surface {
    background-color: var(--surface-color);
}

.theme-light .bg-surface {
    background-color: var(--surface-color);
}

/* Theme-specific text color utilities */
.theme-dark .text-primary {
    color: var(--text-primary);
}

.theme-light .text-primary {
    color: var(--text-primary);
}

.theme-dark .text-secondary {
    color: var(--text-secondary);
}

.theme-light .text-secondary {
    color: var(--text-secondary);
}

.theme-dark .text-muted {
    color: var(--text-muted);
}

.theme-light .text-muted {
    color: var(--text-muted);
}

/* Theme-specific border color utilities */
.theme-dark .border-primary {
    border-color: var(--primary-color);
}

.theme-light .border-primary {
    border-color: var(--primary-color);
}

/* Theme-specific rounded utilities */
.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.rounded-xl {
    border-radius: 16px;
}

.rounded-full {
    border-radius: 50%;
}

/* Theme-specific display utilities */
.d-none {
    display: none;
}

.d-block {
    display: block;
}

.d-flex {
    display: flex;
}

.d-grid {
    display: grid;
}

/* Theme-specific justify content utilities */
.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-around {
    justify-content: space-around;
}

/* Theme-specific align items utilities */
.align-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

/* Theme-specific width and height utilities */
.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* Theme-specific flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

/* Theme-specific gap utilities */
.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 2rem;
}

/* Theme-specific margin utilities */
.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 1.5rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Theme-specific padding utilities */
.p-1 {
    padding: 0.5rem;
}

.p-2 {
    padding: 1rem;
}

.p-3 {
    padding: 1.5rem;
}

.p-4 {
    padding: 2rem;
}

/* Theme-specific text alignment utilities */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Theme-specific grid utilities */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
