/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #32373c;
    background-color: #ffffff;
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #7c99b1;
}

header h1 {
    font-weight: 700;
    color: #32373c;
    margin-bottom: 8px;
    font-size: 32px;
}

header p {
    color: #7c99b1;
    font-size: 18px;
}

/* Input section styles */
.input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 15px;
}

.url-input {
    width: 350px;
    padding: 14px;
    font-size: 16px;
    border: 1px solid #7c99b1;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: inset 0 1px 3px rgba(124, 153, 177, 0.2);
    color: #32373c;
}

.analyze-btn {
    padding: 12px 28px;
    background-color: #0693e3;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(6, 147, 227, 0.2);
}

.analyze-btn:hover {
    background-color: #057bc1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(6, 147, 227, 0.3);
}

.analyze-btn:active {
    transform: translateY(0);
}

/* Results section styles */
#results {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Screenshot styles - with show more/less functionality */
.screenshot-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.screenshot {
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(124, 153, 177, 0.2);
    position: relative;
    background-color: white;
    border: 1px solid #7c99b1;
}

.image-wrapper {
    width: 100%;
    overflow: hidden;
    transition: height 0.4s ease;
}

.screenshot.collapsed .image-wrapper {
    height: 50px;
}

.screenshot:not(.collapsed) .image-wrapper {
    height: auto;
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.expand-btn {
    width: 100%;
    padding: 12px 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0%, rgba(255,255,255,1) 50%);
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #0693e3;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    position: relative;
    gap: 8px;
    border-top: 1px solid rgba(124, 153, 177, 0.3);
}

.screenshot.collapsed .collapse-text,
.screenshot:not(.collapsed) .expand-text {
    display: none;
}

.screenshot:not(.collapsed) .fa-chevron-down {
    transform: rotate(180deg);
}

.expand-btn:hover {
    background-color: rgba(6, 147, 227, 0.05);
    color: #057bc1;
}

.expand-btn i {
    transition: transform 0.3s ease;
}

/* Analysis content styles */
.analysis {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(124, 153, 177, 0.15);
    margin-bottom: 60px;
    border: 1px solid #7c99b1;
}

.analysis h1 {
    color: #32373c;
    border-bottom: 2px solid #7c99b1;
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 28px;
}

.analysis h2 {
    margin-top: 35px;
    margin-bottom: 15px;
    color: #32373c;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 22px;
}

.score {
    margin-left: 12px;
    color: #0693e3;
    font-weight: bold;
    background-color: rgba(6, 147, 227, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    border: 1px solid rgba(6, 147, 227, 0.2);
}

.analysis p {
    color: #32373c;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

strong {
    color: #32373c;
    font-weight: 600;
}

.analysis ul, .analysis ol {
    padding-left: 25px;
    margin: 20px 0;
}

.analysis li {
    margin-bottom: 10px;
    color: #32373c;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .input-container {
        flex-direction: column;
        align-items: center;
    }
    
    .url-input {
        width: 100%;
        max-width: 350px;
    }
    
    .screenshot {
        width: 100%;
    }
    
    .analysis {
        padding: 25px;
    }
    
    .analysis h1 {
        font-size: 24px;
    }
    
    .analysis h2 {
        font-size: 20px;
    }
}