/* Global Frontend Styles for WordPress Blocks */

:root {
    --wp-dev-primary: #2563eb;
    --wp-dev-primary-light: #dbeafe;
    --wp-dev-secondary: #7c3aed;
    --wp-dev-gray-50: #f9fafb;
    --wp-dev-gray-100: #f3f4f6;
    --wp-dev-gray-600: #4b5563;
    --wp-dev-gray-900: #111827;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure blocks are full width when needed */
.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.alignwide {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* Common button styles */
.wp-dev-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.wp-dev-button-primary {
    background: var(--wp-dev-primary);
    color: white;
}

.wp-dev-button-primary:hover {
    background: #1d4ed8;
    color: white;
}

.wp-dev-button-secondary {
    background: transparent;
    border: 2px solid var(--wp-dev-primary);
    color: var(--wp-dev-primary);
}

.wp-dev-button-secondary:hover {
    background: var(--wp-dev-primary);
    color: white;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .wp-dev-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .wp-dev-hide-desktop {
        display: none !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wp-dev-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading states */
.wp-dev-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.wp-dev-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--wp-dev-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
