/*
 * Copyright 2025 John Turner
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    max-width: 700px;
    width: 95%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00d4ff, #091e3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.name-display {
    background: linear-gradient(135deg, #232526 0%, #414345 100%);
    border-radius: 15px;
    padding: 25px 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.name-display h2 {
    font-size: clamp(1.2rem, 4vw, 2.2rem);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.5vw, 2px);
    font-weight: bold;
    white-space: nowrap;
    overflow: visible;
    word-break: keep-all;
    max-width: 100%;
}

.generate-button {
    background: linear-gradient(45deg, #00d4ff, #091e3a);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.generate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
}

.generate-button:active {
    transform: translateY(0);
}

.share-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.share-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.share-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

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

.share-btn[data-platform="twitter"]:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: rgba(29, 161, 242, 0.5);
    color: #1da1f2;
}

.share-btn[data-platform="instagram"]:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: rgba(225, 48, 108, 0.5);
    color: #e1306c;
}

.share-btn[data-platform="linkedin"]:hover {
    background: rgba(10, 102, 194, 0.2);
    border-color: rgba(10, 102, 194, 0.5);
    color: #0a66c2;
}

.share-btn[data-platform="copy"]:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.5);
    color: #22c55e;
}

.info {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 10px;
    color: #555;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.info p {
    font-size: 0.9rem;
    line-height: 1.6;
}

footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
    color: #999;
    font-size: 0.9rem;
}

.footer-links {
    margin: 15px 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-links a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #00b8e6;
    text-decoration: underline;
}

.footer-links span {
    color: #ccc;
}

.copyright {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #777;
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .name-display h2 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }
    
    .name-display {
        padding: 20px 10px;
        min-height: 70px;
    }
    
    .generate-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Animation for name changes */
.fade-out {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #22c55e;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

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