/*
 * Theme Base Styles - Applied to all themes
 * Uses CSS custom properties defined in theme files
 */

/* Root element theming */
:root {
    /* Default to seafoam theme if not specified */
    --theme-primary: #20B2AA;
}

/* Body and basic elements */
body {
    font-family: var(--theme-font-family);
    background-color: var(--theme-bg-secondary);
    color: var(--theme-text-primary);
    transition: background-color var(--theme-transition-base),
                color var(--theme-transition-base);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--theme-text-primary);
}

a {
    color: var(--theme-primary);
    transition: color var(--theme-transition-fast);
}

a:hover {
    color: var(--theme-primary-dark);
}

/* Navigation styles */
.theme-nav {
    background: var(--theme-nav-bg);
    color: var(--theme-nav-text);
    height: var(--theme-nav-height);
    box-shadow: var(--theme-shadow-sm);
    transition: all var(--theme-transition-base);
}

.theme-nav a {
    color: var(--theme-nav-text);
    text-decoration: none;
    transition: background-color var(--theme-transition-fast);
}

.theme-nav a:hover {
    background-color: var(--theme-nav-hover);
}

/* Seafoam theme nav styling */
:root[data-theme="seafoam"] .theme-nav {
    box-shadow: 0 2px 4px rgba(32, 178, 170, 0.15);
}

/* Cards */
.theme-card {
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: var(--theme-border-radius);
    padding: var(--theme-spacing-lg);
    box-shadow: var(--theme-card-shadow);
    transition: transform var(--theme-transition-base),
                box-shadow var(--theme-transition-base);
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--theme-card-shadow-hover);
}

/* Buttons */
.theme-btn-primary,
.btn.theme-btn-primary,
a.theme-btn-primary {
    background-color: var(--theme-btn-primary-bg) !important;
    color: var(--theme-btn-primary-text) !important;
    border: 2px solid var(--theme-btn-primary-bg) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-primary:hover,
.btn.theme-btn-primary:hover,
a.theme-btn-primary:hover {
    background-color: var(--theme-btn-primary-hover) !important;
    border-color: var(--theme-btn-primary-hover) !important;
    color: var(--theme-btn-primary-text) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

.theme-btn-secondary,
.btn.theme-btn-secondary,
a.theme-btn-secondary {
    background-color: var(--theme-btn-secondary-bg) !important;
    color: var(--theme-btn-secondary-text) !important;
    border: 2px solid var(--theme-btn-secondary-border) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-secondary:hover,
.btn.theme-btn-secondary:hover,
a.theme-btn-secondary:hover {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-inverse) !important;
    border-color: var(--theme-primary) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

/* Hero Section */
.theme-hero {
    background: var(--theme-bg-hero);
    padding: var(--theme-spacing-3xl) var(--theme-spacing-xl);
    text-align: center;
}

.theme-hero-title {
    font-size: var(--theme-font-size-2xl);
    font-weight: 700;
    color: var(--theme-text-primary);
    margin-bottom: var(--theme-spacing-md);
}

.theme-hero-subtitle {
    font-size: var(--theme-font-size-lg);
    color: var(--theme-text-secondary);
    font-weight: 400;
}

/* Feature Icons */
.theme-icon-wrapper {
    width: 56px;
    height: 56px;
    background: var(--theme-icon-bg);
    color: var(--theme-icon-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--theme-spacing-md);
}

.theme-checkmark {
    color: var(--theme-checkmark-color);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Section Headings */
.theme-section-label {
    color: var(--theme-primary);
    font-size: var(--theme-font-size-sm);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--theme-spacing-md);
}

.theme-section-heading {
    color: var(--theme-text-primary);
    font-size: var(--theme-font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--theme-spacing-2xl);
    line-height: 1.3;
}

/* Footer */
.theme-footer {
    background: var(--theme-footer-bg);
    color: var(--theme-footer-text);
    padding: var(--theme-spacing-lg) var(--theme-spacing-xl);
}

/* Badge/Pill */
.theme-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--theme-card-bg);
    border: 1px solid var(--theme-border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: var(--theme-font-size-sm);
    color: var(--theme-text-secondary);
    margin-bottom: var(--theme-spacing-lg);
}

/* Gradient Text (for seafoam theme) */
:root[data-theme="seafoam"] .theme-hero-title {
    background: var(--theme-primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status Buttons */
.theme-btn-success,
.btn.theme-btn-success,
a.theme-btn-success {
    background-color: var(--theme-btn-success-bg) !important;
    color: var(--theme-btn-success-text) !important;
    border: 2px solid var(--theme-btn-success-bg) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-success:hover,
.btn.theme-btn-success:hover,
a.theme-btn-success:hover {
    background-color: var(--theme-btn-success-hover) !important;
    border-color: var(--theme-btn-success-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

.theme-btn-warning,
.btn.theme-btn-warning,
a.theme-btn-warning {
    background-color: var(--theme-btn-warning-bg) !important;
    color: var(--theme-btn-warning-text) !important;
    border: 2px solid var(--theme-btn-warning-bg) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-warning:hover,
.btn.theme-btn-warning:hover,
a.theme-btn-warning:hover {
    background-color: var(--theme-btn-warning-hover) !important;
    border-color: var(--theme-btn-warning-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

.theme-btn-danger,
.btn.theme-btn-danger,
a.theme-btn-danger {
    background-color: var(--theme-btn-danger-bg) !important;
    color: var(--theme-btn-danger-text) !important;
    border: 2px solid var(--theme-btn-danger-bg) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-danger:hover,
.btn.theme-btn-danger:hover,
a.theme-btn-danger:hover {
    background-color: var(--theme-btn-danger-hover) !important;
    border-color: var(--theme-btn-danger-hover) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

/* Small button variants */
.theme-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: var(--theme-font-size-sm);
}

/* Outline button variants */
.theme-btn-outline-success,
.btn.theme-btn-outline-success,
a.theme-btn-outline-success {
    background-color: transparent !important;
    color: var(--theme-btn-success-bg) !important;
    border: 2px solid var(--theme-btn-success-bg) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-outline-success:hover,
.btn.theme-btn-outline-success:hover,
a.theme-btn-outline-success:hover {
    background-color: var(--theme-btn-success-bg) !important;
    color: var(--theme-btn-success-text) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

.theme-btn-outline-warning,
.btn.theme-btn-outline-warning,
a.theme-btn-outline-warning {
    background-color: transparent !important;
    color: var(--theme-btn-warning-bg) !important;
    border: 2px solid var(--theme-btn-warning-bg) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-outline-warning:hover,
.btn.theme-btn-outline-warning:hover,
a.theme-btn-outline-warning:hover {
    background-color: var(--theme-btn-warning-bg) !important;
    color: var(--theme-btn-warning-text) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

.theme-btn-outline-danger,
.btn.theme-btn-outline-danger,
a.theme-btn-outline-danger {
    background-color: transparent !important;
    color: var(--theme-btn-danger-bg) !important;
    border: 2px solid var(--theme-btn-danger-bg) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-outline-danger:hover,
.btn.theme-btn-outline-danger:hover,
a.theme-btn-outline-danger:hover {
    background-color: var(--theme-btn-danger-bg) !important;
    color: var(--theme-btn-danger-text) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

/* Status Badges */
.theme-badge-success {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: var(--theme-font-size-sm);
    font-weight: 600;
    line-height: 1;
    color: var(--theme-btn-success-text);
    background-color: var(--theme-btn-success-bg);
    border-radius: var(--theme-border-radius-sm);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.theme-badge-warning {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: var(--theme-font-size-sm);
    font-weight: 600;
    line-height: 1;
    color: var(--theme-btn-warning-text);
    background-color: var(--theme-btn-warning-bg);
    border-radius: var(--theme-border-radius-sm);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.theme-badge-danger {
    display: inline-block;
    padding: 0.35rem 0.65rem;
    font-size: var(--theme-font-size-sm);
    font-weight: 600;
    line-height: 1;
    color: var(--theme-btn-danger-text);
    background-color: var(--theme-btn-danger-bg);
    border-radius: var(--theme-border-radius-sm);
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

/* Outline Primary Button */
.theme-btn-outline-primary,
.btn.theme-btn-outline-primary,
a.theme-btn-outline-primary {
    background-color: transparent !important;
    color: var(--theme-primary) !important;
    border: 2px solid var(--theme-primary) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-outline-primary:hover,
.btn.theme-btn-outline-primary:hover,
a.theme-btn-outline-primary:hover {
    background-color: var(--theme-primary) !important;
    color: var(--theme-text-inverse) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

/* Outline Secondary Button */
.theme-btn-outline-secondary,
.btn.theme-btn-outline-secondary,
a.theme-btn-outline-secondary {
    background-color: #dedede !important;
    color: var(--theme-text-secondary) !important;
    border: 2px solid var(--theme-border-color) !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-outline-secondary:hover,
.btn.theme-btn-outline-secondary:hover,
a.theme-btn-outline-secondary:hover {
    background-color: var(--theme-bg-accent) !important;
    color: var(--theme-text-primary) !important;
    border-color: var(--theme-primary) !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

/* Info Button */
.theme-btn-info,
.btn.theme-btn-info,
a.theme-btn-info {
    background-color: #17a2b8 !important;
    color: #fff !important;
    border: 2px solid #17a2b8 !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-info:hover,
.btn.theme-btn-info:hover,
a.theme-btn-info:hover {
    background-color: #138496 !important;
    border-color: #138496 !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

.theme-btn-outline-info,
.btn.theme-btn-outline-info,
a.theme-btn-outline-info {
    background-color: transparent !important;
    color: #17a2b8 !important;
    border: 2px solid #17a2b8 !important;
    border-radius: var(--theme-border-radius-sm);
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--theme-transition-base);
    text-decoration: none;
}

.theme-btn-outline-info:hover,
.btn.theme-btn-outline-info:hover,
a.theme-btn-outline-info:hover {
    background-color: #17a2b8 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--theme-shadow-md);
}

/* Utilities */
.theme-text-primary { color: var(--theme-text-primary); }
.theme-text-secondary { color: var(--theme-text-secondary); }
.theme-text-muted { color: var(--theme-text-muted); }
.theme-bg-primary { background-color: var(--theme-bg-primary); }
.theme-bg-secondary { background-color: var(--theme-bg-secondary); }
.theme-bg-accent { background-color: var(--theme-bg-accent); }

/* Smooth theme transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: var(--theme-transition-base);
    transition-timing-function: ease;
}

/* Disable transitions on theme elements that shouldn't animate */
.no-theme-transition {
    transition: none !important;
}
