/* Components CSS */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: white;
    box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -6px rgb(16 185 129 / 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent-dark);
}

.btn-outline:hover {
    background-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.85rem;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-accent-light);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Specialty Cards */
.specialty-card img {
    transition: transform 0.3s ease;
}

.specialty-card:hover img {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 1.5rem;
    background-color: var(--color-graphite);
    color: white;
    text-align: center;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background-image: url('../assets/images/logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.08;
    z-index: 1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.08;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.12;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(16, 185, 129, 0.9) 0%,
            rgba(30, 41, 59, 0.95) 50%,
            rgba(14, 165, 233, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.35rem;
    color: #f1f5f9;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    font-weight: 500;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Mobile responsive adjustments for components */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 1rem;
        min-height: 500px;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }
}

/* Page Builder placeholders */
.draggable-section {
    position: relative;
    border: 2px dashed transparent;
    transition: all 0.2s;
}

.draggable-section.editing {
    border-color: var(--color-accent);
    cursor: move;
    background: rgba(16, 185, 129, 0.05);
}

/* Admin Bar */
.admin-bar {
    background-color: var(--color-graphite);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.85rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.admin-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-bar-left,
.admin-quick-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-badge {
    background: var(--color-accent);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}

.admin-quick-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.admin-quick-links a:hover {
    color: var(--color-accent);
}

.count-pill {
    background-color: var(--color-warning);
    color: black;
    padding: 0 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.btn-ghost {
    background: transparent;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}