/* components.css - UI Components Styles */

/* General styles for fancy titles */
.fancy-title {
    width: 100%;
    text-align: center;
    margin-bottom: 40px; /* Increased for more space */
    position: relative;
}

/* Style for h2 - Bold, fiery and standout */
.fancy-title h2 {
    font-size: 2.5em; /* Relative unit */
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF6F61, #D83B01); /* Fiery gradient */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    margin-top: 0; margin-bottom: 0; /* Reset margins */
}

/* Pulse effect for h2 */
.fancy-title h2::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 5px;
    animation: pulse 1.5s infinite ease-in-out;
}

/* Horizontal line for h2 */
.fancy-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #7289da; /* Blue color for emphasis */
}

/* Style for h3 - A cooler, sleek, and tech-inspired look */
.fancy-title h3 {
    font-size: 2em; /* Relative unit */
    font-weight: 600;
    color: #eaeaea;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3c9eff, #5f5ff0); /* Cool gradient */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 1px;
    margin-top: 0; margin-bottom: 0; /* Reset margins */
}

/* Pulse effect for h3 */
.fancy-title h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    animation: pulse 2s infinite ease-in-out;
}

/* Horizontal line for h3 */
.fancy-title h3::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #ffbb00; /* Yellow accent */
}

/* Style for h4 - Elegant, minimalistic with a touch of tech */
.fancy-title h4 {
    font-size: 1.8em; /* Relative unit */
    font-weight: 500;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding: 8px 18px;
    background: linear-gradient(135deg, #28a745, #2d94b9); /* Green to blue gradient */
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 1.5px;
    margin-top: 0; margin-bottom: 0; /* Reset margins */
}

/* Pulse effect for h4 */
.fancy-title h4::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    animation: pulse 1.8s infinite ease-in-out;
}

/* Horizontal line for h4 */
.fancy-title h4::after {
    content: '';
    position: absolute;
    bottom: -6px; /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 2px;
    background-color: #f59e42; /* Warm accent */
}

/* Pulse animation for all headings */
@keyframes pulse {
    0% {
        transform: scaleX(0.8);
    }
    50% {
        transform: scaleX(1.2);
    }
    100% {
        transform: scaleX(0.8);
    }
}

/* Media queries for fancy titles font sizes */
@media screen and (max-width: 768px) {
    .fancy-title h2 { font-size: 2em; }
    .fancy-title h3 { font-size: 1.7em; }
    .fancy-title h4 { font-size: 1.5em; }
}
@media screen and (max-width: 480px) {
    .fancy-title h2 { font-size: 1.6em; padding: 8px 15px; }
    .fancy-title h3 { font-size: 1.4em; padding: 10px 20px; }
    .fancy-title h4 { font-size: 1.2em; padding: 6px 12px; }
    .fancy-title h2::after { width: 60px; bottom: -8px; }
    .fancy-title h3::after { width: 50px; bottom: -6px; }
    .fancy-title h4::after { width: 40px; bottom: -5px; }
}


/* Styles for the button container */
.button-container {
    display: flex;
    justify-content: space-around; /* Space between the buttons */
    gap: 15px; /* Adjusted space between the buttons */
    margin: 20px 0; /* Add margin to the top and bottom */
    flex-wrap: wrap; /* Ensure buttons wrap on small screens */
}

/* Styles for individual buttons in button-container */
.btn-news, .btn-contests { /* Assuming .btn-contests might be used elsewhere */
    flex: 1 1 200px; /* Allow buttons to grow but have a base of 200px */
    max-width: 300px; /* Max width for each button */
    text-align: center; /* Center the button text */
}

.btn-news a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #ff3b30, #00008b);
    color: #fff !important;
    text-decoration: none;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    font-size: 1em; /* Adjusted font size */
    letter-spacing: 1px;
    font-weight: bold;
    min-height: 60px; /* Ensure consistent height, use min-height */
    text-transform: uppercase;
    box-sizing: border-box;
}

.btn-news a:hover {
    background: linear-gradient(45deg, #00008b, #ff3b30);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    color: #fff !important;
}


/* Title Container (if used generally) */
.title-container {
    width: 100%;
    text-align: center;
    margin-top: 10px; /* Reduced margin */
}

/* Styles for the big button */
.big-button {
    display: inline-block; /* To respect padding and allow text centering if parent doesn't do it */
    width: 100%; /* Take full width of its parent anchor tag's flex item space */
    max-width: 350px; /* A sensible max-width for larger screens */
    padding: 15px 25px;
    font-size: 1.1em; /* Adjusted font size */
    color: #fff !important;
    background: linear-gradient(45deg, #007bff, #0056b3); /* Example: Blue gradient */
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.25);
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px; /* Spacing below the button */
    box-sizing: border-box;
}

.big-button:hover {
    background: linear-gradient(45deg, #0056b3, #007bff); /* Inverted gradient */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}


/* Modified "Join the fun" button styles */
.fun-btn {
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1em; /* Adjusted font size */
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    margin: 20px auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fun-btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
    background: linear-gradient(45deg, #ff3b30, #007bff);
    color: #fff;
}