/*
Theme Name: Ai Papa Theme
Theme URI: https://fileurl.online/
Author: Ai Papa
Author URI: https://fileurl.online/
Description: Premium mobile-first responsive layout simulation for Ai Papa (aipapa.shop).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aipapa-theme
*/

/*
Theme Name: Ai Papa Theme
Theme URI: https://fileurl.online/
Author: Ai Papa
Author URI: https://fileurl.online/
Description: Premium mobile-first responsive layout simulation for Ai Papa (aipapa.shop).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aipapa-theme
*/

        :root {
            --primary-color: #7b8ced;
            /* Header Lavender Blue */
            --yellow-color: #fce12c;
            /* "Free Call" Gold Yellow */
            --bg-color: #f7f9fd;
            /* Body Background */
            --card-bg: #ffffff;
            /* Card White */
            --text-dark: #22252a;
            /* Main Dark Text */
            --text-gray: #7d8494;
            /* Location/Sub-text Gray */
            --live-bg: #fff0f3;
            /* Live status background */
            --live-text: #ff3b5c;
            /* Live status text */
            --online-bg: #e6fcf0;
            /* Online status background */
            --online-text: #00c250;
            /* Online status text */
            --arrow-color: #10b981;
            /* Vibrant Active Green */
            --call-green: #00c853;
            /* Bright Green Call Button */
            --call-hover: #05d75d;
            --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.04);
            --shadow-glow: 0 10px 25px rgba(0, 200, 83, 0.3);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            -webkit-tap-highlight-color: transparent;
        }

        body {
            margin: 0;
            padding: 0;
            background-color: var(--bg-color);
            min-height: 100vh;
            font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            color: var(--text-dark);
        }

        /* App Wrapper (Mobile Sandbox Simulator) */
        .app-container {
            width: 100%;
            min-height: 100vh;
            background-color: var(--bg-color);
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* Apply rounded container on desktop */
        @media (min-width: 480px) {
            body {
                background: radial-gradient(circle at 20% 30%, #eef3ff 0%, #e2e8f0 100%);
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .app-container {
                max-width: 430px;
                height: 90vh;
                max-height: 850px;
                border-radius: 36px;
                border: 8px solid #22252a;
                box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
                overflow: hidden;
            }
        }

        /* Scrollable Area within App Wrapper */
        .app-content {
            flex-grow: 1;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
        }

        /* Hide scrollbar but keep functionality */
        .app-content::-webkit-scrollbar {
            width: 6px;
        }

        .app-content::-webkit-scrollbar-track {
            background: transparent;
        }

        .app-content::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, 0.08);
            border-radius: 3px;
        }

        /* App Header Styling */
        .app-header {
            background-color: var(--primary-color);
            padding: 20px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 10;
            box-shadow: 0 4px 15px rgba(123, 140, 237, 0.25);
        }

        .header-title {
            font-size: 1.65rem;
            font-weight: 700;
            color: var(--yellow-color);
            letter-spacing: 0.5px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }

        .menu-btn {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            border-radius: 10px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .menu-btn:hover {
            background: rgba(255, 255, 255, 0.25);
        }

        .menu-btn:active {
            transform: scale(0.92);
        }

        /* Sidebar Navigation */
        .sidebar {
            position: absolute;
            top: 0;
            left: -290px;
            width: 280px;
            height: 100%;
            background: #ffffff;
            z-index: 110;
            box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }

        .sidebar.open {
            transform: translateX(290px);
        }

        .sidebar-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            opacity: 0;
            pointer-events: none;
            z-index: 105;
            backdrop-filter: blur(2px);
            transition: opacity 0.3s ease;
        }

        .sidebar-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .sidebar-header {
            padding: 24px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .sidebar-header h2 {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .close-sidebar-btn {
            font-size: 1.8rem;
            background: none;
            border: none;
            color: var(--text-gray);
            cursor: pointer;
            line-height: 1;
        }

        .sidebar-links {
            list-style: none;
            padding: 20px 10px;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .sidebar-links li a {
            display: block;
            padding: 12px 18px;
            border-radius: 12px;
            color: var(--text-dark);
            text-decoration: none;
            font-weight: 550;
            font-size: 0.95rem;
            transition: background 0.2s, color 0.2s;
        }

        .sidebar-links li a:hover,
        .sidebar-links li a.active {
            background: var(--live-bg);
            color: var(--live-text);
        }

        /* User Card List */
        .cards-list {
            padding: 16px 14px 90px 14px;
            /* extra bottom padding for floating button */
            display: flex;
            flex-direction: column;
            gap: 16px;
            flex-grow: 1;
        }

        /* User Card component */
        .user-card {
            background-color: var(--card-bg);
            border-radius: 28px;
            padding: 14px;
            display: flex;
            align-items: center;
            box-shadow: var(--shadow-soft);
            border: 1.5px solid rgba(0, 0, 0, 0.01);
            transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.15), box-shadow 0.25s ease;
            cursor: pointer;
            position: relative;
            overflow: hidden;
        }

        .user-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);
        }

        .user-card:active {
            transform: scale(0.985);
        }

        /* Avatar Image & Placeholders */
        .avatar-wrapper {
            width: 82px;
            height: 82px;
            border-radius: 50%;
            border: 3.5px solid #ff3b7a;
            padding: 2px;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            flex-shrink: 0;
            box-shadow: 0 4px 12px rgba(255, 59, 122, 0.15);
        }

        /* Incase user adds a real img tag later */
        .profile-image {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            object-fit: cover;
        }

        /* Interactive placeholder gradient */
        .image-placeholder {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(135deg, #ffe5ee 0%, #ffccd9 100%);
            color: #ff3b7a;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 6px;
            overflow: hidden;
            position: relative;
        }

        .image-placeholder::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
            transform: translateX(-100%);
            animation: placeholder-shimmer 2.5s infinite;
        }

        .image-placeholder svg {
            width: 24px;
            height: 24px;
            margin-bottom: 2px;
            opacity: 0.8;
        }

        .placeholder-tag {
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            opacity: 0.9;
        }

        /* Details Section */
        .user-details {
            flex-grow: 1;
            margin-left: 16px;
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .details-top {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .user-name {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-dark);
            letter-spacing: -0.2px;
        }

        /* Status Badge Pill */
        .status-badge {
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .status-badge.live {
            background-color: var(--live-bg);
            color: var(--live-text);
            position: relative;
        }

        .status-badge.online {
            background-color: var(--online-bg);
            color: var(--online-text);
        }

        /* Location and Age details */
        .user-location {
            font-size: 0.88rem;
            color: var(--text-gray);
            font-weight: 500;
        }

        .user-age {
            font-size: 1.05rem;
            color: #ff3b7a;
            font-weight: 700;
        }

        /* Chevron Arrows Container */
        .arrow-indicator {
            display: flex;
            align-items: center;
            margin-right: 8px;
            margin-left: 4px;
            flex-shrink: 0;
        }

        .chevron {
            width: 18px;
            height: 18px;
            color: var(--arrow-color);
            display: inline-block;
            transition: color 0.2s, transform 0.2s;
        }

        .chevron.first {
            animation: chevron-flow 1.5s infinite ease-in-out 0s;
        }

        .chevron.second {
            margin-left: -9px;
            animation: chevron-flow 1.5s infinite ease-in-out 0.25s;
        }

        .chevron.third {
            margin-left: -9px;
            animation: chevron-flow 1.5s infinite ease-in-out 0.5s;
        }

        /* WhatsApp Button Styling */
        .whatsapp-action-btn {
            width: 54px;
            height: 54px;
            border-radius: 50%;
            background-color: #25D366;
            /* WhatsApp Brand Green */
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
            transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
            flex-shrink: 0;
        }

        .whatsapp-action-btn:hover {
            transform: scale(1.08);
            background-color: #20ba5a;
            box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
        }

        .whatsapp-action-btn:active {
            transform: scale(0.94);
        }

        .whatsapp-icon {
            width: 28px;
            height: 28px;
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        }

        /* Floating Action Button (Join) */
        .floating-join-btn {
            position: absolute;
            bottom: 20px;
            right: 20px;
            background-color: #00b074;
            color: #ffffff;
            border-radius: 30px;
            padding: 12px 24px;
            font-weight: 700;
            font-size: 0.95rem;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 6px 20px rgba(0, 176, 116, 0.35);
            z-index: 90;
            transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .floating-join-btn:hover {
            transform: translateY(-2px) scale(1.04);
            box-shadow: 0 10px 24px rgba(0, 176, 116, 0.45);
            background-color: #00be7d;
        }

        .floating-join-btn:active {
            transform: translateY(0) scale(0.96);
        }

        /* Modal - Dialer Screen Styles */
        .call-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(22, 24, 30, 0.8);
            backdrop-filter: blur(10px);
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.35s ease;
        }

        .call-modal.show {
            opacity: 1;
            pointer-events: auto;
        }

        .call-modal-content {
            width: 85%;
            background: #ffffff;
            border-radius: 36px;
            padding: 36px 24px;
            text-align: center;
            box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
            transform: scale(0.85);
            transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.2);
        }

        .call-modal.show .call-modal-content {
            transform: scale(1);
        }

        /* Calling Avatar and Rings animation */
        .call-animation-avatar {
            position: relative;
            width: 110px;
            height: 110px;
            margin: 0 auto 24px auto;
        }

        .modal-profile-placeholder {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: linear-gradient(135deg, #e8faf0 0%, #c7f7de 100%);
            color: #25D366;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            z-index: 5;
            border: 4px solid #ffffff;
            box-shadow: 0 10px 25px rgba(37, 211, 102, 0.2);
        }

        .modal-profile-placeholder svg {
            width: 44px;
            height: 44px;
        }

        .avatar-ring-pulse,
        .avatar-ring-pulse-two {
            position: absolute;
            top: -4px;
            left: -4px;
            width: 118px;
            height: 118px;
            border-radius: 50%;
            border: 2px solid #25D366;
            opacity: 0;
            z-index: 1;
        }

        .call-modal.show .avatar-ring-pulse {
            animation: avatar-ripple 2s infinite linear;
        }

        .call-modal.show .avatar-ring-pulse-two {
            animation: avatar-ripple 2s infinite linear 1s;
        }

        .modal-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 6px;
        }

        .modal-status {
            font-size: 0.95rem;
            color: var(--text-gray);
            margin-bottom: 20px;
            font-weight: 500;
        }

        .modal-timer {
            font-size: 1.15rem;
            font-weight: 700;
            color: #ff3b7a;
            margin-bottom: 30px;
            letter-spacing: 1px;
        }

        .hangup-btn {
            width: 65px;
            height: 65px;
            border-radius: 50%;
            background-color: #ff3b30;
            color: #ffffff;
            border: none;
            cursor: pointer;
            box-shadow: 0 8px 24px rgba(255, 59, 48, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            transition: all 0.2s ease;
        }

        .hangup-btn:hover {
            transform: scale(1.08);
            background-color: #e02b20;
            box-shadow: 0 10px 28px rgba(255, 59, 48, 0.5);
        }

        .hangup-btn:active {
            transform: scale(0.92);
        }

        /* Chat Drawer Styles */
        .chat-drawer {
            position: absolute;
            bottom: -360px;
            left: 0;
            width: 100%;
            height: 350px;
            background: #ffffff;
            border-radius: 30px 30px 0 0;
            z-index: 130;
            box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
            transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
            display: flex;
            flex-direction: column;
        }

        .chat-drawer.open {
            transform: translateY(-360px);
        }

        .drawer-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            opacity: 0;
            pointer-events: none;
            z-index: 125;
            transition: opacity 0.3s ease;
        }

        .drawer-overlay.show {
            opacity: 1;
            pointer-events: auto;
        }

        .drawer-header {
            padding: 16px 24px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.06);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .drawer-header h3 {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-dark);
        }

        .close-drawer-btn {
            font-size: 1.8rem;
            background: none;
            border: none;
            color: var(--text-gray);
            cursor: pointer;
            line-height: 1;
        }

        .drawer-messages {
            flex-grow: 1;
            padding: 16px 24px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .chat-msg {
            padding: 10px 14px;
            border-radius: 16px;
            font-size: 0.9rem;
            max-width: 85%;
            line-height: 1.4;
        }

        .chat-msg.system {
            align-self: center;
            background: #f1f5f9;
            color: var(--text-gray);
            font-size: 0.78rem;
            font-weight: 600;
        }

        .chat-msg.user-msg {
            align-self: flex-start;
            background: #f0f3ff;
            color: var(--text-dark);
            border-top-left-radius: 4px;
        }

        .chat-msg.sent-msg {
            align-self: flex-end;
            background: #00b074;
            color: #ffffff;
            border-top-right-radius: 4px;
        }

        .user-label {
            font-weight: 700;
            color: #3b82f6;
            margin-right: 4px;
        }

        .pink-name .user-label {
            color: #ff3b7a;
        }

        .drawer-input-row {
            padding: 12px 16px;
            border-top: 1px solid rgba(0, 0, 0, 0.06);
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .drawer-input-row input {
            flex-grow: 1;
            height: 44px;
            border-radius: 22px;
            border: 1.5px solid #e2e8f0;
            padding: 0 16px;
            outline: none;
            font-family: inherit;
            font-size: 0.9rem;
            transition: border-color 0.2s;
        }

        .drawer-input-row input:focus {
            border-color: var(--primary-color);
        }

        .drawer-input-row button {
            height: 44px;
            border-radius: 22px;
            background-color: var(--primary-color);
            color: #ffffff;
            border: none;
            padding: 0 20px;
            font-weight: 700;
            cursor: pointer;
            font-size: 0.9rem;
            transition: background 0.2s;
        }

        .drawer-input-row button:hover {
            background-color: #6a7ad8;
        }

        /* Animations */
        @keyframes placeholder-shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        @keyframes chevron-flow {
            0% {
                opacity: 0.2;
                transform: translateX(-4px) scale(0.85);
                color: #a7f3d0;
            }

            40% {
                opacity: 1;
                transform: translateX(4px) scale(1.3);
                color: #059669;
                filter: drop-shadow(0 2px 4px rgba(5, 150, 105, 0.3));
            }

            80% {
                opacity: 0.2;
                transform: translateX(-4px) scale(0.85);
                color: #a7f3d0;
            }

            100% {
                opacity: 0.2;
                transform: translateX(-4px) scale(0.85);
                color: #a7f3d0;
            }
        }

        @keyframes avatar-ripple {
            0% {
                transform: scale(0.95);
                opacity: 1;
            }

            100% {
                transform: scale(1.6);
                opacity: 0;
            }
        }

        @keyframes pulse-live {
            0% {
                box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.4);
            }

            70% {
                box-shadow: 0 0 0 8px rgba(255, 59, 92, 0);
            }

            100% {
                box-shadow: 0 0 0 0 rgba(255, 59, 92, 0);
            }
        }

        .status-badge.live {
            animation: pulse-live 1.8s infinite;
        }

        /* Small Screens Media Query Override for Responsive layout */
        @media (max-width: 375px) {
            .cards-list {
                padding: 12px 10px 80px 10px;
                gap: 12px;
            }

            .user-card {
                padding: 10px;
                border-radius: 20px;
            }

            .avatar-wrapper {
                width: 70px;
                height: 70px;
                border-width: 2.5px;
            }

            .user-details {
                margin-left: 10px;
                gap: 2px;
            }

            .user-name {
                font-size: 1.05rem;
            }

            .user-location {
                font-size: 0.8rem;
            }

            .user-age {
                font-size: 0.95rem;
            }

            .call-action-btn,
            .whatsapp-action-btn {
                width: 48px;
                height: 48px;
            }

            .chevron {
                width: 14px;
                height: 14px;
            }

            .arrow-indicator {
                margin-right: 4px;
                margin-left: 2px;
            }
        }

        /* --- VIBRATION & REORDERING SIMULATION STYLES --- */

        /* Vibration keyframe for the WhatsApp button */
        @keyframes button-vibrate {
            0% {
                transform: scale(1) rotate(0deg);
            }

            15% {
                transform: scale(1.08) rotate(-6deg);
            }

            30% {
                transform: scale(1.08) rotate(6deg);
            }

            45% {
                transform: scale(1.08) rotate(-6deg);
            }

            60% {
                transform: scale(1.08) rotate(6deg);
            }

            75% {
                transform: scale(1.08) rotate(-6deg);
            }

            90% {
                transform: scale(1.08) rotate(6deg);
            }

            100% {
                transform: scale(1) rotate(0deg);
            }
        }

        .whatsapp-action-btn.vibrating {
            animation: button-vibrate 0.5s infinite linear;
            background-color: #20ba5a;
            box-shadow: 0 0 22px rgba(37, 211, 102, 0.7);
        }

        /* Card rise animation when it moves to the top */
        @keyframes card-rise {
            0% {
                opacity: 0.8;
                transform: translateY(12px) scale(0.97);
            }

            100% {
                opacity: 1;
                transform: translateY(-4px) scale(1.015);
            }
        }

        .user-card.active-call {
            animation: card-rise 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            border: 1.5px solid #25D366;
            box-shadow: 0 12px 30px rgba(37, 211, 102, 0.18);
            background-color: #fbfeff;
        }


        /* SEO Footer Styling */
        .app-seo-footer {
            padding: 30px 24px;
            background-color: #ffffff;
            text-align: center;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            margin-top: auto;
        }

        .footer-copyright {
            font-size: 0.9rem;
            color: var(--text-dark);
            margin-bottom: 8px;
        }

        .footer-desc {
            font-size: 0.75rem;
            color: var(--text-gray);
            line-height: 1.5;
        }

        @media (min-width: 480px) {
            .app-seo-footer {
                padding: 24px 20px;
            }
        }