/* OpenSID Mobile API Landing Page Styles */
/* Color Scheme: #00743e (Primary Green) & #6eab11 (Secondary Green) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #00743e 0%, #6eab11 50%, #00743e 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(110, 171, 17, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 116, 62, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 116, 62, 0.2), 
                0 10px 20px rgba(110, 171, 17, 0.1);
    max-width: 900px;
    width: 90%;
    text-align: center;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: containerFloat 6s ease-in-out infinite;
}

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

.logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #00743e 0%, #6eab11 100%);
    border-radius: 50%;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: bold;
    box-shadow: 0 15px 30px rgba(0, 116, 62, 0.3);
    animation: logoPulse 3s ease-in-out infinite;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #00743e, #6eab11);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.3;
    animation: logoGlow 2s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes logoGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.1); opacity: 0.6; }
}

h1 {
    background: linear-gradient(135deg, #00743e 0%, #6eab11 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-size: 3em;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 116, 62, 0.1);
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
}

.subtitle {
    color: #00743e;
    font-size: 1.3em;
    margin-bottom: 40px;
    font-weight: 500;
    opacity: 0.9;
}

.api-info {
    background: linear-gradient(135deg, rgba(0, 116, 62, 0.05) 0%, rgba(110, 171, 17, 0.05) 100%);
    border-radius: 20px;
    padding: 35px;
    margin: 40px 0;
    text-align: left;
    border: 1px solid rgba(0, 116, 62, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.api-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00743e 0%, #6eab11 100%);
}

.endpoint {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 116, 62, 0.1);
    border-radius: 12px;
    padding: 18px;
    margin: 12px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.endpoint::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #00743e 0%, #6eab11 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.endpoint:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 116, 62, 0.15);
    border-color: rgba(0, 116, 62, 0.2);
}

.endpoint:hover::before {
    transform: scaleY(1);
}

.method {
    background: linear-gradient(135deg, #00743e 0%, #6eab11 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0, 116, 62, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method.public {
    background: linear-gradient(135deg, #6eab11 0%, #00743e 100%);
}

.method.protected {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: linear-gradient(135deg, #00743e 0%, #6eab11 100%);
    color: white;
    padding: 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 116, 62, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    opacity: 0;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 116, 62, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
    transform: rotate(45deg) translate(20px, 20px);
}

.stat-number {
    font-size: 2.5em;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: numberCount 2s ease-out;
}

@keyframes numberCount {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

.stat-label {
    font-size: 1em;
    opacity: 0.95;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 116, 62, 0.1);
    color: #00743e;
    font-size: 0.95em;
    background: linear-gradient(135deg, rgba(0, 116, 62, 0.02) 0%, rgba(110, 171, 17, 0.02) 100%);
    border-radius: 15px;
    padding: 25px;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #00743e 0%, #6eab11 100%);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 30px;
    margin: 12px;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 116, 62, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::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 ease;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 116, 62, 0.4);
}

.btn:hover::before {
    left: 100%;
}

/* Floating particles animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(110, 171, 17, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; }
.particle:nth-child(8) { left: 80%; animation-delay: 1.5s; }
.particle:nth-child(9) { left: 90%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Loading animation for stats */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 116, 62, 0.3);
    border-radius: 50%;
    border-top-color: #00743e;
    animation: spin 1s ease-in-out infinite;
}

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

/* Ripple animation for buttons */
@keyframes ripple {
    to {
        transform: scale(2);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 15px;
    }
    
    h1 {
        font-size: 2.2em;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1em;
        margin: 8px;
    }
}
