/* ============================================
    VICKY PRESIDENTA APP - CSS
    Mobile First Design
   ============================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #ced7ff 0%, #dcc2f7 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.favicons-container {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 9999;
}

.favicon-item {
    position: absolute;
    width: 46px;
    height: 46px;
    opacity: 0.95;
    transform: translateY(0) scale(1);
    animation: riseAndFade 6s forwards ease-in;
}

@keyframes riseAndFade {
    0% { transform: translateY(100vh) scale(1); opacity: 1; }
    50% { transform: translateY(50vh) scale(1.05); opacity: 0.9; }
    100% { transform: translateY(-50vh) scale(1.05); opacity: 0; }
}
.stage {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: fadeIn 0.5s ease-in-out;
}

.stage.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
    NAME INPUT STAGE
   ============================================ */

.intro-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 1.4;
}

.name-section {
    width: 100%;
}

.name-input {
    width: 100%;
    padding: 12px 0;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    border: none;
    border-bottom: 3px solid #667eea;
    background: transparent;
    color: #333;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: 'Kanit', sans-serif;
}

.name-input::placeholder {
    color: #999;
}

.name-input:focus {
    border-bottom-color: #764ba2;
}

/* ============================================
    INTRO STAGE
   ============================================ */

.intro-section {
    width: 100%;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.main-title {
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.5;
}

/* ============================================
    BUTTONS
   ============================================ */

.discover-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Kanit', sans-serif;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.discover-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.discover-btn:active {
    transform: translateY(-1px);
}

/* ============================================
    LOADING STAGE
   ============================================ */

.loading-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    font-size: 18px;
    color: #333;
    margin: 0;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ============================================
    RESULT STAGE
   ============================================ */

.result-section {
    width: 100%;
    animation: slideInUp 0.5s ease-out;
    position: relative;
}

.result-image-container {
    margin: 0 0 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.result-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.result-title {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 15px 0;
    line-height: 1.3;
}

.result-text {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

/* ============================================
    SHARE SECTION
   ============================================ */

.share-section {
    margin: 30px 0;
    padding: 30px 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}

.share-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0 0 20px 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon {
    font-size: 24px;
}

.social-btn.whatsapp {
    background: #25D366;
    color: white;
}

.social-btn.facebook {
    background: #1877F2;
    color: white;
    font-weight: black;
}

.social-btn.twitter {
    background: #000000;
    color: white;
}

.social-btn.instagram {
    background: linear-gradient(25deg, #ffdc80, #fcaf45, #f77737, #f56040, #fd1d1d, #e1306c, #c13584, #833ab4, #5851db, #405de6);
    color: white;
}

.social-btn.tiktok {
    background: linear-gradient(45deg, #FE2C55, #000000, #25F4EE);
    color: white;
}

.social-btn.linkedin {
    background: #0A66C2;
    color: white;
    font-weight: bold;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-btn:active {
    transform: translateY(-2px);
}

/* INPUT ROW WITH ENTER BUTTON */
.name-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.enter-btn {
    width: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 18px 55px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Kanit', sans-serif;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.enter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.enter-btn:active {
    transform: translateY(-1px);
}

/* SOCIAL BUTTONS USE IMAGE ICONS */
.social-btn img {
    width: 28px;
    height: 28px;
    display: block;
}

.discover-btn.outline {
    background: #ffffff;
    color: #333;
    border: 2px dashed #ccc;
    box-shadow: none;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* FAVICONS ANIMATION */


/* ============================================
    TABLET PORTRAIT (481px - 768px)
   ============================================ */

@media only screen and (min-width: 481px) and (max-width: 768px) {
    .app-container {
        max-width: 500px;
        min-height: 600px;
    }

    .stage {
        padding: 50px 30px;
    }

    .name-input {
        font-size: 28px;
        padding: 15px 0;
    }

    .intro-title {
        font-size: 32px;
        margin: 0 0 35px 0;
    }

    .main-title {
        font-size: 32px;
        margin: 0 0 25px 0;
    }

    .subtitle {
        font-size: 18px;
        margin: 0 0 35px 0;
    }

    .discover-btn {
        padding: 16px 45px;
        font-size: 17px;
    }

    .loader {
        width: 70px;
        height: 70px;
        border-width: 6px;
    }

    .loading-text {
        font-size: 19px;
    }

    .result-title {
        font-size: 28px;
    }

    .result-text {
        font-size: 17px;
    }

    .social-buttons {
        gap: 20px;
    }

    .social-btn {
        width: 55px;
        height: 55px;
    }

    .social-icon {
        font-size: 26px;
    }
}

/* ============================================
    TABLET LANDSCAPE (769px - 1279px, landscape)
   ============================================ */

@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: landscape) {
    body {
        padding: 15px;
    }

    .app-container {
        max-width: 700px;
        min-height: 550px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .stage {
        padding: 40px 30px;
        grid-column: 1 / -1;
    }

    .result-section {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
    }

    .result-image-container {
        grid-column: 1;
        margin: 0;
        order: 2;
    }

    .result-title {
        grid-column: 2;
        margin: 0 0 15px 0;
        font-size: 26px;
    }

    .result-text {
        grid-column: 2;
        margin: 0 0 20px 0;
        text-align: left;
    }

    .share-section {
        grid-column: 2;
        margin: 0;
        padding: 20px 0 0 0;
        border: none;
        border-top: 2px solid #eee;
    }

    .share-title {
        text-align: left;
        margin: 0 0 15px 0;
    }

    .social-buttons {
        justify-content: flex-start;
    }

    .discover-btn {
        grid-column: 2;
        margin-top: 10px;
    }
}

/* ============================================
    TABLET PORTRAIT (769px - 1279px, portrait)
   ============================================ */

@media only screen and (min-width: 769px) and (max-width: 1279px) and (orientation: portrait) {
    .app-container {
        max-width: 600px;
        min-height: 650px;
    }

    .stage {
        padding: 60px 40px;
    }

    .name-input {
        font-size: 30px;
        padding: 18px 0;
    }

    .intro-title {
        font-size: 36px;
        margin: 0 0 40px 0;
    }

    .main-title {
        font-size: 36px;
        margin: 0 0 30px 0;
    }

    .subtitle {
        font-size: 19px;
        margin: 0 0 40px 0;
    }

    .discover-btn {
        padding: 17px 50px;
        font-size: 18px;
    }

    .loader {
        width: 75px;
        height: 75px;
        border-width: 6px;
    }

    .loading-text {
        font-size: 20px;
    }

    .result-image-container {
        margin: 0 0 35px 0;
    }

    .result-title {
        font-size: 32px;
    }

    .result-text {
        font-size: 18px;
    }

    .share-section {
        margin: 35px 0;
        padding: 35px 0;
    }

    .share-title {
        font-size: 19px;
    }

    .social-buttons {
        gap: 22px;
    }

    .social-btn {
        width: 60px;
        height: 60px;
    }

    .social-icon {
        font-size: 28px;
    }
}

/* ============================================
    DESKTOP (1280px+)
   ============================================ */

@media only screen and (min-width: 1280px) {
    body {
        padding: 20px;
    }

    .app-container {
        max-width: 800px;
        min-height: 700px;
    }

    .stage {
        padding: 70px 50px;
    }

    .name-input {
        font-size: 32px;
        padding: 20px 0;
        border-bottom-width: 4px;
    }

    .name-input:focus {
        border-bottom-width: 4px;
    }

    .intro-title {
        font-size: 40px;
        margin: 0 0 45px 0;
    }

    .main-title {
        font-size: 40px;
        margin: 0 0 35px 0;
    }

    .subtitle {
        font-size: 20px;
        margin: 0 0 45px 0;
    }

    .discover-btn {
        padding: 18px 55px;
        font-size: 19px;
        font-weight: 600;
    }

    .loader {
        width: 80px;
        height: 80px;
        border-width: 7px;
    }

    .loading-text {
        font-size: 22px;
    }

    .result-image-container {
        margin: 0 0 40px 0;
    }

    .result-title {
        font-size: 36px;
        margin: 0 0 20px 0;
    }

    .result-text {
        font-size: 19px;
        margin: 0 0 35px 0;
        line-height: 1.7;
    }

    .share-section {
        margin: 40px 0;
        padding: 40px 0;
    }

    .share-title {
        font-size: 20px;
        margin: 0 0 25px 0;
    }

    .social-buttons {
        gap: 25px;
    }

    .social-btn {
        width: 65px;
        height: 65px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }

    .social-icon {
        font-size: 30px;
    }

    .discover-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
    }
}
