/**
 * Woroku Modern Gradient Theme
 * Professional Design with Gradient Colors
 * Mobile Responsive & Editable
 * Version: 3.1.0
 */

:root {
    /* Gradient Color Palette */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-danger: linear-gradient(135deg, #f54ea2 0%, #ff7676 100%);
    --gradient-info: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --gradient-dark: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --gradient-light: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    
    /* Advanced Gradients */
    --gradient-ocean: linear-gradient(135deg, #2E3192 0%, #1BFFFF 100%);
    --gradient-sunset: linear-gradient(135deg, #FA8BFF 0%, #2BD2FF 50%, #2BFF88 100%);
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-fire: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
    --gradient-candy: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
    
    /* Base Colors */
    --color-primary: #667eea;
    --color-primary-dark: #5568d3;
    --color-primary-light: #e0e7ff;
    --color-secondary: #f5576c;
    --color-success: #00f2fe;
    --color-warning: #fee140;
    --color-danger: #ff7676;
    --color-dark: #1e3c72;
    --color-light: #f8f9fa;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-gradient: 0 10px 40px -10px rgba(102, 126, 234, 0.5);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
}

/* ============================================
   GRADIENT BUTTONS
   ============================================ */

.btn, .button, button[type="submit"] {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    text-decoration: none;
    color: var(--color-white);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::before {
    opacity: 1;
}

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

.btn:active {
    transform: translateY(0);
}

/* Button Variants with Gradients */
.btn-primary, .button-primary {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-gradient);
}

.btn-secondary {
    background: var(--gradient-secondary);
}

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

.btn-warning {
    background: var(--gradient-warning);
}

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

.btn-info {
    background: var(--gradient-info);
}

.btn-dark {
    background: var(--gradient-dark);
}

.btn-ocean {
    background: var(--gradient-ocean);
}

.btn-sunset {
    background: var(--gradient-sunset);
}

.btn-fire {
    background: var(--gradient-fire);
}

/* ============================================
   BUTTON LOADING STATES
   ============================================ */

.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

.btn-loading .btn-text {
    opacity: 0;
}

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

/* Loading Spinner Component */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

.spinner-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

.spinner-lg {
    width: 32px;
    height: 32px;
    border-width: 4px;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* ============================================
   GRADIENT CARDS
   ============================================ */

.card-gradient {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: var(--transition);
}

.card-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

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

.card-gradient-full {
    background: var(--gradient-primary);
    color: var(--color-white);
}

.card-gradient-overlay {
    position: relative;
    color: var(--color-white);
    overflow: hidden;
}

.card-gradient-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.9;
    z-index: 1;
}

.card-gradient-overlay > * {
    position: relative;
    z-index: 2;
}

/* ============================================
   GRADIENT BACKGROUNDS
   ============================================ */

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

.bg-gradient-ocean {
    background: var(--gradient-ocean);
}

.bg-gradient-sunset {
    background: var(--gradient-sunset);
}

.bg-gradient-purple {
    background: var(--gradient-purple);
}

.bg-gradient-fire {
    background: var(--gradient-fire);
}

.bg-gradient-candy {
    background: var(--gradient-candy);
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-sunset {
    background: var(--gradient-sunset);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   MODERN POST CARDS
   ============================================ */

.post-card-modern {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.post-card-modern .post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-card-modern .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card-modern:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-card-modern .post-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.post-card-modern:hover .post-thumbnail::after {
    opacity: 0.3;
}

.post-card-modern .post-content {
    padding: 1.5rem;
}

.post-card-modern .entry-categories {
    margin-bottom: 0.75rem;
}

.post-card-modern .entry-categories a {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.post-card-modern .entry-categories a:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.post-card-modern .post-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.post-card-modern .post-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.post-card-modern .post-title a:hover {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-card-modern .entry-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ============================================
   GRADIENT BADGES
   ============================================ */

.badge-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow);
}

.badge-gradient-secondary {
    background: var(--gradient-secondary);
}

.badge-gradient-success {
    background: var(--gradient-success);
}

/* ============================================
   MODERN HEADER
   ============================================ */

.site-header-modern {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header-modern .header-top {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.site-branding-modern .site-title {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

/* ============================================
   NAVIGATION WITH GRADIENT
   ============================================ */

.primary-navigation-modern {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
}

.primary-navigation-modern .primary-menu > li > a {
    position: relative;
    color: var(--color-white);
    padding: 1rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
}

.primary-navigation-modern .primary-menu > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--color-white);
    transform: translateX(-50%);
    transition: var(--transition);
}

.primary-navigation-modern .primary-menu > li > a:hover::before,
.primary-navigation-modern .primary-menu > li.current-menu-item > a::before {
    width: 80%;
}

.primary-navigation-modern .primary-menu > li > a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   FOOTER WITH GRADIENT
   ============================================ */

.site-footer-modern {
    background: var(--gradient-dark);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer-bottom-modern {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* ============================================
   FORMS WITH GRADIENT
   ============================================ */

.form-group-modern {
    margin-bottom: 1.5rem;
}

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

.form-input-modern,
.form-textarea-modern,
.form-select-modern {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: var(--transition);
    background: var(--color-white);
}

.form-input-modern:focus,
.form-textarea-modern:focus,
.form-select-modern:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
    border: 2px solid transparent;
}

/* ============================================
   ALERTS WITH GRADIENT
   ============================================ */

.alert-gradient {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
}

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

.alert-gradient-warning {
    background: var(--gradient-warning);
    color: var(--gray-900);
}

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

.alert-gradient-info {
    background: var(--gradient-info);
    color: var(--color-white);
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .btn, .button, button[type="submit"] {
        padding: 0.625rem 1.25rem;
        font-size: 0.813rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
    }
    
    .post-card-modern .post-content {
        padding: 1rem;
    }
    
    .post-card-modern .post-title {
        font-size: 1.125rem;
    }
    
    .card-gradient {
        padding: 1rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease-out;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* ============================================
   UTILITIES
   ============================================ */

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
