/* Stock Analysis Pro - CSS Styles */

:root {
    --primary-blue: #1B4F72;
    --secondary-blue: #2874A6;
    --light-blue: #D6EAF8;
    --white: #FFFFFF;
    --dark-text: #2C3E50;
    --light-text: #5D6D7E;
    --success-green: #27AE60;
    --whatsapp-green: #25D366;
    --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    --gradient-light: linear-gradient(135deg, var(--light-blue) 0%, rgba(214, 234, 248, 0.3) 100%);
    --shadow-light: 0 4px 15px rgba(27, 79, 114, 0.1);
    --shadow-medium: 0 8px 25px rgba(27, 79, 114, 0.15);
    --shadow-heavy: 0 15px 35px rgba(27, 79, 114, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    overflow-x: hidden;
    padding-bottom: 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

/* Main Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(27, 79, 114, 0.7);
    z-index: 2;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.logo i {
    margin-right: 1rem;
    font-size: 2.5rem;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10;
    max-width: 600px;
    width: 100%;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 3rem;
}

.hero-subtitle {
    color: var(--light-blue);
    font-size: 1.3rem;
    margin-bottom: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

/* Input Container */
.input-container {
    width: 100%;
    max-width: 400px;
}

.input-container .input-group {
    margin-bottom: 1.5rem;
}

.input-container input {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-container input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Input Hint Style */
.input-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Disclaimer Notice */
.disclaimer-notice {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 193, 7, 0.6);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 2rem 0;
    max-width: 600px;
}

.disclaimer-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.disclaimer-content i {
    color: #FFC107;
    font-size: 1.5rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.disclaimer-content p {
    color: var(--white);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.disclaimer-content strong {
    color: #FFC107;
}

/* Risk Warning */
.risk-warning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    color: rgba(255, 255, 255, 0.95);
    text-align: left;
}

.risk-warning i {
    color: #DC3545;
    font-size: 1.3rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.risk-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.risk-main {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
}

.risk-detail {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

/* Compliance Information */
.compliance-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.compliance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    min-width: 120px;
}

.compliance-item i {
    font-size: 1.5rem;
    color: var(--light-blue);
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
}


/* Buttons */
.cta-button {
    background: var(--whatsapp-green);
    color: var(--white);
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-medium);
    font-family: 'Montserrat', sans-serif;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: #1ea952;
}

.cta-button.primary {
    background: var(--gradient-primary);
    border: 2px solid var(--white);
}

.cta-button.secondary {
    background: var(--white);
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.cta-button.secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* Footer */
.page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(27, 79, 114, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    z-index: 100;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.footer-links a:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 0;
    border-radius: 20px;
    width: 85%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-heavy);
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

/* Simplified Result Modal */
.result-modal {
    max-width: 300px;
    width: 80%;
    overflow: hidden;
}

.result-modal .modal-header {
    padding: 1rem;
}

.result-modal .modal-header h2 {
    font-size: 1.3rem;
    margin: 0;
}

.result-modal .modal-body {
    padding: 1rem;
    text-align: center;
}

.result-modal .modal-body p {
    margin-bottom: 1.5rem;
    color: var(--dark-text);
    font-size: 1rem;
}


@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 20px 20px 0 0;
    text-align: center;
}

.modal-header h2 {
    color: var(--white);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.modal-header p {
    color: var(--light-blue);
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #E8F4FD;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Form Styles */
.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.input-group input:focus {
    outline: none;
    border-color: var(--secondary-blue);
    box-shadow: 0 0 0 3px rgba(40, 116, 166, 0.1);
}

.analyze-button {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: 'Montserrat', sans-serif;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Progress Styles */
.progress-container {
    margin-bottom: 2rem;
}

.progress-step {
    margin-bottom: 1.5rem;
}

.progress-label {
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.progress-bar {
    height: 8px;
    background: var(--light-blue);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.8s ease;
    border-radius: 10px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    animation: progressShine 1.5s infinite;
}

@keyframes progressShine {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(20px);
        opacity: 0;
    }
}

.analyzing-status {
    text-align: center;
    padding: 1.5rem;
    background: var(--gradient-light);
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary-blue);
}

.analyzing-status i {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    color: var(--secondary-blue);
}

/* Results Modal Styles */
.success-message {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-green);
    margin-bottom: 1rem;
    display: block;
}

.success-message h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.whatsapp-cta {
    background: var(--gradient-light);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.whatsapp-cta h4 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.whatsapp-cta h4 i {
    color: var(--whatsapp-green);
    font-size: 1.5rem;
}

.whatsapp-button {
    background: var(--whatsapp-green);
    color: var(--white);
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-medium);
    font-family: 'Montserrat', sans-serif;
    animation: buttonPulse 2s infinite;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: #1ea952;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.report-features {
    background: var(--white);
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    padding: 1.5rem;
}

.report-features h5 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.report-features ul {
    list-style: none;
    margin: 0;
}

.report-features ul li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--dark-text);
}

.report-features ul li i {
    color: var(--success-green);
    font-size: 1rem;
}

.close-button {
    background: var(--success-green);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 auto;
    display: block;
    text-align: center;
}

.close-button:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}


/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .logo {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .input-container {
        max-width: 350px;
    }
    
    .input-container input {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 0 10px;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .result-modal {
        width: 90%;
        max-width: 280px;
    }
    
    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    
    .disclaimer-notice {
        padding: 1rem;
        margin: 1.5rem 0;
    }
    
    .disclaimer-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .disclaimer-content p {
        font-size: 0.9rem;
    }
    
    .compliance-info {
        gap: 1rem;
    }
    
    .compliance-item {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .risk-warning {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }
    
    .risk-main {
        font-size: 0.85rem;
    }
    
    .risk-detail {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.8rem;
    }
    
    .input-container {
        max-width: 300px;
    }
    
    .input-container input {
        padding: 0.9rem;
        font-size: 0.95rem;
    }
    
    .analyze-button {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .modal-body {
        padding: 0.8rem;
    }
    
    .result-modal {
        width: 95%;
        max-width: 260px;
    }
    
    .result-modal .modal-header {
        padding: 0.8rem;
    }
    
    .result-modal .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .result-modal .modal-body {
        padding: 0.8rem;
    }
    
    .footer-links {
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    
    .page-footer {
        padding: 0.5rem 0;
    }
    
    
    .disclaimer-notice {
        padding: 0.8rem;
        margin: 1rem 0;
    }
    
    .disclaimer-content p {
        font-size: 0.85rem;
    }
    
    .compliance-info {
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .compliance-item {
        min-width: 80px;
        font-size: 0.75rem;
    }
    
    .compliance-item i {
        font-size: 1.2rem;
        padding: 0.6rem;
    }
    
    .risk-warning {
        padding: 0.6rem 0.8rem;
        gap: 0.6rem;
    }
    
    .risk-main {
        font-size: 0.8rem;
    }
    
    .risk-detail {
        font-size: 0.7rem;
    }
}
