/* Stunning Home Page Design - Somali Presidential Campaign */

/* Hero Section Enhancements */
.wp-block-cover {
    position: relative;
    overflow: hidden;
}

.wp-block-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30,60,114,0.7) 0%, rgba(42,82,152,0.6) 50%, rgba(255,107,53,0.4) 100%);
    z-index: 1;
}

.wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

/* Button Hover Effects */
.wp-block-button__link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.wp-block-button__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.wp-block-button__link:hover::before {
    left: 100%;
}

.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

/* News Cards Hover Effects */
.wp-block-group:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #1e3c72 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Fade In Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Background Pattern */
.pattern-bg {
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30,60,114,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,107,53,0.1) 0%, transparent 50%);
}

/* Card Styling */
.campaign-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.campaign-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3c72 0%, #ff6b35 100%);
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Social Media Icons */
.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wp-block-cover {
        min-height: 500px !important;
    }
    
    .wp-block-heading {
        font-size: 2.5rem !important;
    }
    
    .wp-block-button__link {
        padding: 15px 25px !important;
        font-size: 1.1rem !important;
    }
    
    .wp-block-columns {
        flex-direction: column;
    }
    
    .wp-block-column {
        flex-basis: 100% !important;
    }
}

@media (max-width: 480px) {
    .wp-block-cover {
        min-height: 400px !important;
        padding: 40px 20px !important;
    }
    
    .wp-block-heading {
        font-size: 2rem !important;
    }
    
    .wp-block-button__link {
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.loading:nth-child(1) { animation-delay: 0.1s; }
.loading:nth-child(2) { animation-delay: 0.2s; }
.loading:nth-child(3) { animation-delay: 0.3s; }
.loading:nth-child(4) { animation-delay: 0.4s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #1e3c72 0%, #ff6b35 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #1e3c72 100%);
}

/* Text Selection */
::selection {
    background: rgba(255,107,53,0.3);
    color: #1e3c72;
}

/* Focus States */
.wp-block-button__link:focus,
a:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1e3c72 0%, #ff6b35 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: white;
}

/* RTL Support */
body[dir="rtl"] .wp-block-columns {
    direction: rtl;
}

body[dir="rtl"] .wp-block-button {
    text-align: right;
}

/* Print Styles */
@media print {
    .wp-block-cover,
    .wp-block-button {
        background: white !important;
        color: black !important;
    }
    
    .wp-block-button__link {
        border: 1px solid black;
    }
}

