/* =========================================================================
   Site Base
   These rules came from the Dental Websites CSS, which was loaded on every
   page. They were kept when the dental portal was removed because they still
   style non-dental pages:
   - Element reset and body defaults: every page
   - .container: e.g. /miraskin/
   - .page-title, .page-subtitle, .card*, .btn*: login forms (shared/components/login)
   - .service-card: service cards on the Themify Builder agency pages
   - .pulse-dot: unread badge in the ticket overview
   Fonts (Inter, Material Icons Outlined) are enqueued in functions.php.
   ========================================================================= */

/* 1. Reset & Body */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--base-font-sans);
    background-color: var(--base-bg);
    color: var(--base-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    transition: all 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    font-weight: 700;
}

/* 2. Layout */
.container {
    width: 100%;
    max-width: var(--base-container-max-width);
    margin: 0 auto;
    padding: 0 var(--base-spacing-md);
}

.page-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: var(--base-spacing-md);
    color: var(--base-text);
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--base-text-muted);
    margin-bottom: var(--base-spacing-xl);
}

/* 3. Cards */
.card {
    background-color: var(--base-surface);
    border-radius: var(--base-radius-2xl);
    border: 1px solid var(--base-border);
    overflow: hidden;
    position: relative;
    box-shadow: var(--base-shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card__body {
    padding: var(--base-spacing-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--base-spacing-md);
}

/* 4. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.625rem 1.25rem;
    border-radius: var(--base-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none !important;
}

.btn--primary {
    background-color: var(--base-color-primary);
    color: var(--base-on-primary);
}

.btn--primary:hover {
    background-color: var(--base-color-primary-hover);
}

.btn--outline {
    border: 1px solid var(--base-border);
    background-color: transparent;
    color: var(--base-text);
}

.btn--outline:hover {
    background-color: var(--base-surface-hover);
    border-color: var(--base-text-muted);
}

/* 5. Service Cards (Themify Builder agency pages) */
.service-card {
    height: 100%;
    background-color: var(--base-surface);
    border-radius: var(--base-radius-xl);
    padding: var(--base-spacing-md);
    border: 1px solid var(--base-border);
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.service-card:hover {
    border-color: rgba(67, 56, 202, 0.5);
}

/* 6. Pulse Dot (ticket overview unread badge) */
.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: var(--base-color-success);
    border-radius: 50%;
    margin-right: 12px;
    box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}
