/**
 * Author: Omar SA
 * Date: 2024-03-19
 * Email: info@finhive.tech
 * Website: https://finhive.tech
 * Description: Styles for Finhive coming soon landing page
 * Version: 1.0.0
 */

/* Reset and security-focused base styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    height: 100%;
}

/* Ensure proper rendering and prevent unwanted behaviors */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Prevent unwanted text selection */
.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Ensure proper focus styles for accessibility */
:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Ensure proper contrast for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:root {
    /* Light theme variables */
    --primary-purple: rgba(59, 48, 248, 1);  /* Logo blue */
    --light-purple: rgba(89, 78, 255, 1);    /* Lighter blue */
    --yellow: rgba(255, 215, 0, 1);          /* Keeping gold as accent */
    --background: #F8F9FA;
    --text: #2D2D2D;
    --content-bg: rgba(255, 255, 255, 0.9);
    --border-color: #eee;
    --shadow-color: rgba(59, 48, 248, 0.1);  /* Blue-tinted shadow */
}

[data-theme="dark"] {
    --primary-purple: rgba(89, 78, 255, 1);  /* Brighter blue for dark mode */
    --light-purple: rgba(119, 108, 255, 1);  /* Even lighter blue */
    --yellow: rgba(255, 215, 0, 1);          /* Keeping gold as accent */
    --background: #0A0A1A;                    /* Dark blue-tinted background */
    --text: #FFFFFF;
    --content-bg: rgba(10, 10, 26, 0.9);     /* Dark blue-tinted content bg */
    --border-color: rgba(59, 48, 248, 0.2);  /* Subtle blue border */
    --shadow-color: rgba(59, 48, 248, 0.2);  /* Blue-tinted shadow */
}

/* Theme Toggle Styles */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#theme-toggle-btn {
    background: var(--content-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

#theme-toggle-btn:hover {
    transform: scale(1.1);
}

#theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text);
}

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="dark"] .sun-icon {
    display: block;
}

[data-theme="dark"] .moon-icon {
    display: none;
}

/* Container and Content Styles */
.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    width: 100%;
    background: var(--content-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.logo {
    margin-bottom: 1rem;
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

.svg-logo {
    width: 140px;
    height: 29px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

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

/* Text Logo Styles (commented out in HTML but kept in CSS for reference) */
.text-logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: inline-block;
}

.word-fin {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 0.1em;
}

.word-hive {
    background: linear-gradient(135deg, var(--yellow), #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Alternative Logo Styles (commented out in HTML but styled here for future use) */
.alt-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.alt-logo:hover {
    transform: scale(1.1);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.subtitle {
    font-size: 1.25rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-item span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    background: rgba(157, 78, 221, 0.1);
    padding: 1rem;
    border-radius: 12px;
    min-width: 100px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.countdown-item label {
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

button {
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 48, 248, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0;
}

.social-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--light-purple);
}

.background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-purple);
    top: -150px;
    left: -150px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--yellow);
    bottom: -100px;
    right: -100px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--light-purple);
    top: 50%;
    right: 10%;
    animation: float 7s ease-in-out infinite 1s;
}

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

/* Footer Styles */
.footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text);
    font-size: 0.9rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.company-link {
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.company-link:hover {
    color: var(--light-purple);
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-toggle {
        top: 10px;
        right: 10px;
    }

    #theme-toggle-btn {
        width: 35px;
        height: 35px;
    }

    #theme-toggle-btn svg {
        width: 18px;
        height: 18px;
    }

    .content {
        padding: 2rem;
        gap: 1.5rem;
    }

    .footer {
        margin-top: 1.5rem;
        padding-top: 1.5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .countdown {
        gap: 1rem;
    }

    .countdown-item span {
        font-size: 1.8rem;
        min-width: 70px;
        padding: 0.8rem;
    }

    button {
        width: 100%;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .svg-logo {
        width: 120px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1.5rem;
        gap: 1rem;
    }

    .footer {
        margin-top: 1rem;
        padding-top: 1rem;
        font-size: 0.8rem;
    }

    h1 {
        font-size: 2rem;
    }

    .countdown {
        flex-wrap: wrap;
    }

    .countdown-item {
        width: calc(50% - 1rem);
    }

    .svg-logo {
        width: 100px;
        height: 21px;
    }
}

/* 404 Page Specific Styles */
.error-message {
    font-size: 1.1rem;
    color: var(--text);
    margin: 1rem 0 2rem;
    opacity: 0.9;
}

.home-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
    color: white;
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.home-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.home-button:focus {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

/* Adjust 404 page specific responsive styles */
@media (max-width: 768px) {
    .error-message {
        font-size: 1rem;
        margin: 0.8rem 0 1.5rem;
    }

    .home-button {
        padding: 0.7rem 1.8rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .error-message {
        font-size: 0.95rem;
        margin: 0.6rem 0 1.2rem;
    }

    .home-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
} 
