/**
 * Webpages App Styles
 * Import brand kit for centralized color system
 */
@import url('brand-kit-custom.css');

/* ================================================================= GLOBAL COMMON STYLES ============= */

/*
 * Color variables are defined in brand-kit.css
 * Using brand-kit variables: --color-aqua, --color-navy, --color-white, --gradient-aqua-navy
 */

/* Global Links */
a {
    color: var(--color-aqua);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-navy);
}

/* Global Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-aqua-navy);
    color: var(--color-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 199, 190, 0.3);
    text-decoration: none;
}

.btn-danger {
    background: var(--danger);
    color: var(--color-white);
}

.btn-success {
    background: var(--success);
    color: var(--color-white);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

/* Global Card Styles */
.card {
    background: var(--color-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 1.5rem;
}

.page-type-badge {
    background-color: rgba(102, 199, 190, 0.15);
    color: var(--color-aqua);
    font-weight: 600;
}

.hero-card-front {
    background-image: url("https://images.unsplash.com/photo-1569683795645-b62e50fbf103?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=987&q=80");
    background-size: cover;
    background-position: center;
}

.hero-card-back {
    background-image: url("https://images.unsplash.com/photo-1498889444388-e67ea62c464b?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1365&q=80");
    background-size: cover;
    background-position: center;
}

/* Global Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 6px;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
}

.alert-danger {
    background-color: #fee2e2;
    color: #7f1d1d;
}

.alert-info {
    background-color: #e0f2fe;
    color: #0c4a6e;
}

/* Global Form Elements */
.form-control,
.form-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-aqua);
    box-shadow: 0 0 0 3px rgba(102, 199, 190, 0.1);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Text Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--text-medium); }
.text-dark { color: var(--text-dark); }
.text-decoration-none { text-decoration: none; }
.font-weight-bold { font-weight: 700; }

/* Flex Utilities */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }

/* Accessibility */
button:focus,
a:focus,
.form-control:focus {
    outline: 2px solid var(--color-aqua);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}
