/**
 * Word Search Name Generator Styles
 */

/* Hero Section */
.word-search-name-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #ffffff;
    padding: 80px 0 60px;
    text-align: center;
    margin-top: 60px;
}

.word-search-name-hero .page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ffffff;
}

.word-search-name-hero .page-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Main Container */
.word-search-name-container {
    padding: 60px 0;
    background: #f8f9fa;
}

.word-search-name-content {
    max-width: 900px;
    margin: 0 auto;
}

/* Name Input Section */
.name-input-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.name-form .form-group {
    margin-bottom: 20px;
}

.name-form label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.name-form input[type="text"] {
    width: 100%;
    padding: 15px 80px 15px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
}

.name-form input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.name-form input[type="text"]::placeholder {
    color: #bdc3c7;
    text-transform: none;
    letter-spacing: normal;
}

.char-count {
    position: absolute;
    right: 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.form-hint {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 8px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: #e74c3c;
    color: white;
    width: 100%;
}

.btn-primary:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-secondary {
    background: #3498db;
    color: white;
}

.btn-secondary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.btn-outline {
    background: transparent;
    color: #7f8c8d;
    border: 2px solid #bdc3c7;
}

.btn-outline:hover {
    background: #ecf0f1;
    border-color: #95a5a6;
    color: #2c3e50;
}

.btn-full {
    width: 100%;
}

/* Loading Indicator */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #ecf0f1;
    border-top-color: #e74c3c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-indicator p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #7f8c8d;
}

/* Result Section */
.result-section {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    text-align: center;
}

.result-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.result-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.result-subtitle span {
    font-weight: 700;
    color: #e74c3c;
}

.puzzle-image-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: inline-block;
}

.puzzle-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Reveal Solution Button */
.reveal-solution-container {
    margin-bottom: 25px;
    text-align: center;
}

.btn-reveal {
    background: #f39c12;
    color: white;
    padding: 12px 30px;
}

.btn-reveal:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.3);
}

.btn-reveal.revealed {
    background: #9b59b6;
}

.btn-reveal.revealed:hover {
    background: #8e44ad;
    box-shadow: 0 8px 20px rgba(155, 89, 182, 0.3);
}

.download-prompt {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    padding: 30px;
    border-radius: 12px;
    color: white;
    margin-bottom: 20px;
}

.download-prompt i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.download-prompt p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.download-prompt .btn-secondary {
    background: white;
    color: #27ae60;
}

.download-prompt .btn-secondary:hover {
    background: #f8f9fa;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.modal-active {
    opacity: 1;
}

.modal.modal-active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(-20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ecf0f1;
    border: none;
    color: #7f8c8d;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.modal-close:hover {
    background: #e74c3c;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 40px;
    text-align: center;
}

.modal-icon {
    margin-bottom: 20px;
}

.modal-icon i {
    font-size: 4rem;
    color: #e74c3c;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.modal-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Email Form */
.email-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.email-form label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.email-form input[type="text"],
.email-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.email-form input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.privacy-note {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: #95a5a6;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.privacy-note i {
    color: #27ae60;
}

/* How It Works Section */
.how-it-works {
    background: white;
    padding: 50px 40px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.how-it-works h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin: 30px 0 15px;
    display: block;
}

.step-item h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.step-item p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 50px 40px;
    border-radius: 16px;
    color: white;
}

.features-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.feature-card i {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 15px;
    display: block;
}

.feature-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature-card p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
}

/* Notifications */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 15px 25px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #27ae60;
}

.notification-success i {
    color: #27ae60;
}

.notification-error {
    border-left: 4px solid #e74c3c;
}

.notification-error i {
    color: #e74c3c;
}

.notification-info {
    border-left: 4px solid #3498db;
}

.notification-info i {
    color: #3498db;
}

/* Responsive Design */
@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .word-search-name-hero .page-title {
        font-size: 2.2rem;
    }

    .word-search-name-hero .page-subtitle {
        font-size: 1rem;
    }

    .name-input-section {
        padding: 30px 20px;
    }

    .result-section {
        padding: 30px 20px;
    }

    .how-it-works {
        padding: 40px 20px;
    }

    .features-section {
        padding: 40px 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .modal-body {
        padding: 30px 25px;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 576px) {
    .word-search-name-hero {
        padding: 60px 0 40px;
    }

    .word-search-name-hero .page-title {
        font-size: 1.8rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-item {
        padding-top: 20px;
    }

    .name-form input[type="text"] {
        font-size: 1rem;
        padding: 12px 70px 12px 15px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .how-it-works h2,
    .features-section h2 {
        font-size: 1.8rem;
    }

    .result-section h2 {
        font-size: 1.6rem;
    }

    .download-prompt {
        padding: 25px 20px;
    }

    .download-prompt i {
        font-size: 2rem;
    }
}
