/* style.css - Premium visual styling for send-anywhere.in */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-purple: #4d32a0;
    --primary-purple-dark: #37207a;
    --accent-red: #ff3b5c;
    --accent-red-hover: #e02848;
    --text-white: #ffffff;
    --text-dark: #1f1f2e;
    --text-muted: #6b6b81;
    --bg-light: #f7f6fc;
    --bg-card: #ffffff;
    --shadow-card: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header / Navigation */
header {
    background-color: var(--primary-purple);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-white);
}

.logo span {
    color: var(--accent-red);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    padding: 80px 40px 100px 40px;
    color: var(--text-white);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-light);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 60px;
    align-items: center;
}

/* Left Column: Cards Stack */
.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-card);
    color: var(--text-dark);
    transition: var(--transition-smooth);
}

.card h2, .card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Send Card Specifics */
.drop-zone {
    border: 2px dashed #d1c9e8;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #faf9ff;
    transition: var(--transition-smooth);
    position: relative;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary-purple);
    background-color: #f1ecff;
}

.plus-icon {
    font-size: 54px;
    color: var(--accent-red);
    font-weight: 300;
    margin-bottom: 10px;
    display: inline-block;
    transition: var(--transition-smooth);
}

.drop-zone:hover .plus-icon {
    transform: scale(1.1);
}

.drop-zone p {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
}

#file-input {
    display: none;
}

/* File list selected */
.file-list {
    margin-top: 20px;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background-color: #f5f4fa;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.file-name {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.file-size {
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 14px 24px;
    background-color: var(--accent-red);
    color: var(--text-white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 20px;
    text-decoration: none;
}

.btn:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 59, 92, 0.35);
}

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

/* Receive Card Specifics */
.input-group {
    display: flex;
    gap: 12px;
}

.input-key {
    flex: 1;
    padding: 14px;
    border: 2px solid #e1e0eb;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    transition: var(--transition-smooth);
    outline: none;
}

.input-key:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(77, 50, 160, 0.15);
}

.btn-receive {
    background-color: #eeeef8;
    color: var(--primary-purple);
    border: none;
    border-radius: 10px;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-receive:hover {
    background-color: var(--primary-purple);
    color: var(--text-white);
}

.btn-receive svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Transfer State Screens */
.transfer-state {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.pin-display {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-purple);
    letter-spacing: 4px;
    margin: 15px 0;
    font-family: monospace;
}

.countdown {
    color: var(--accent-red);
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 20px;
}

.progress-container {
    margin-top: 20px;
}

.progress-bar-bg {
    background-color: #e5e5f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    background-color: var(--primary-purple);
    width: 0%;
    height: 100%;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}

/* Right Column: Copy & Graphic */
.hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-tag {
    background-color: rgba(255, 255, 255, 0.12);
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
}

.hero-content h1 span {
    color: #ffd054;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}

.mockup-illustrations {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-badge {
    background-color: var(--text-white);
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* SEO Content Area (Below Hero) */
.seo-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
}

.seo-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 60px 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.seo-card h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-purple);
    margin-bottom: 24px;
    margin-top: 40px;
    line-height: 1.3;
}

.seo-card h2:first-of-type {
    margin-top: 0;
}

.seo-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    margin-top: 30px;
}

.seo-card p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.7;
}

.seo-card ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--text-muted);
}

.seo-card li {
    margin-bottom: 8px;
    font-size: 16px;
}

.seo-card strong {
    color: var(--text-dark);
}

/* FAQ Accordions */
.faq-container {
    margin-top: 30px;
}

.faq-item {
    border-bottom: 1px solid #eef0f6;
    padding: 18px 0;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: var(--primary-purple);
    font-weight: 700;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 0;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer a {
    color: var(--text-white);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Web Design */
@media (max-width: 968px) {
    .hero {
        padding: 50px 20px 80px 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-content h1 {
        font-size: 34px;
    }
    
    .seo-card {
        padding: 40px 25px;
    }
}

@media (max-width: 576px) {
    header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .btn-receive {
        width: 100%;
        height: 50px;
    }
    
    .pin-display {
        font-size: 38px;
    }
}

/* Quick Transfer Bar (Subpages) */
.quick-transfer-bar {
    background-color: #faf9ff;
    border-bottom: 1px solid #e1e0eb;
    padding: 12px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 90;
}

.quick-transfer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-purple);
    display: flex;
    align-items: center;
    gap: 6px;
}

.quick-send-btn {
    background-color: var(--primary-purple);
    color: var(--text-white);
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.quick-send-btn:hover {
    background-color: var(--primary-purple-dark);
    transform: translateY(-1px);
}

.quick-receive-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-receive-input {
    padding: 8px 12px;
    border: 1px solid #d1c9e8;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    text-align: center;
    width: 130px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.quick-receive-input:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 2px rgba(77, 50, 160, 0.1);
}

.quick-receive-btn {
    background-color: var(--accent-red);
    color: var(--text-white);
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.quick-receive-btn:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-1px);
}

/* Modal Styling */
.transfer-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(31, 31, 46, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-card);
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: 300;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    text-align: center;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive Quick Bar */
@media (max-width: 768px) {
    .quick-transfer-bar {
        flex-direction: column;
        gap: 12px;
        padding: 15px 20px;
    }
}

