/* Features Page Specific Styles */

/* Hero Section */
.features-hero {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.features-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    animation: fadeIn 0.8s ease-out;
}

.features-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.8s ease-out 0.3s forwards;
}

/* Tools Showcase */
.tools-showcase {
    padding: 80px 0;
    background-color: var(--white);
}

.tools-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tool-tab {
    background-color: var(--light-gray);
    color: var(--text-color);
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.tool-tab:hover {
    background-color: var(--medium-gray);
}

.tool-tab.active {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Tool Content */
.tool-content {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.tool-content.active {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.tool-description {
    flex: 1;
    min-width: 300px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.tool-image {
    width: 60px;
    height: 60px;
    padding: 10px;
    background-color: var(--light-gray);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

/* Styles for SVG inside tool-image */
.tool-image svg {
    width: 100%;
    height: 100%;
}

.tool-image path,
.tool-image circle,
.tool-image rect {
    transition: all 0.3s ease;
}

.tool-description:hover .tool-image {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.2);
    background-color: rgba(33, 150, 243, 0.08);
}

.tool-info {
    flex-grow: 1;
}

.tool-info h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tool-info p {
    margin-bottom: 20px;
}

.tool-features {
    list-style-type: none;
    padding: 0;
}

.tool-features li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.tool-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Tool Demo */
.tool-demo {
    flex: 1;
    min-width: 300px;
}

.demo-browser {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--white);
    border: 1px solid var(--medium-gray);
}

.browser-header {
    background-color: #f0f0f0;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.browser-controls {
    display: flex;
    gap: 5px;
    margin-right: 15px;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
}

.browser-dot:nth-child(1) {
    background-color: #ff5f56;
}

.browser-dot:nth-child(2) {
    background-color: #ffbd2e;
}

.browser-dot:nth-child(3) {
    background-color: #27c93f;
}

.browser-address {
    flex-grow: 1;
    background-color: white;
    border-radius: 15px;
    padding: 5px 15px;
    font-size: 14px;
    color: #666;
}

.browser-content {
    position: relative;
    line-height: 0;
}

.browser-content img {
    width: 100%;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}

/* Drawing Overlays */
.drawing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Specific Overlays */
.pencil-overlay {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' width='600' height='300'%3E%3Cpath d='M50,150 C100,50 200,250 300,150 S500,50 550,150' fill='none' stroke='%232196f3' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

.shapes-overlay {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' width='600' height='300'%3E%3Crect x='50' y='50' width='150' height='100' fill='none' stroke='%23ff5252' stroke-width='2'/%3E%3Ccircle cx='350' cy='100' r='50' fill='none' stroke='%234caf50' stroke-width='2'/%3E%3Cline x1='100' y1='200' x2='500' y2='200' stroke='%239c27b0' stroke-width='2'/%3E%3C/svg%3E");
}

.text-overlay {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' width='600' height='300'%3E%3Crect x='100' y='80' width='200' height='60' fill='%23f5f5f5' stroke='%232196f3' stroke-width='1'/%3E%3Ctext x='120' y='120' font-family='Arial' font-size='20' fill='%23333'%3EText example%3C/text%3E%3Crect x='350' y='150' width='150' height='40' fill='%23f5f5f5' stroke='%232196f3' stroke-width='1'/%3E%3Ctext x='360' y='175' font-family='Arial' font-size='16' fill='%23333'%3ENote%3C/text%3E%3C/svg%3E");
}

.color-overlay {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' width='600' height='300'%3E%3Ccircle cx='150' cy='150' r='40' fill='%23ff5252'/%3E%3Ccircle cx='250' cy='150' r='40' fill='%234caf50'/%3E%3Ccircle cx='350' cy='150' r='40' fill='%232196f3'/%3E%3Ccircle cx='450' cy='150' r='40' fill='%23ff9800'/%3E%3Cline x1='150' y1='220' x2='450' y2='220' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
}

.eraser-overlay {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' width='600' height='300'%3E%3Cpath d='M100,150 C200,50 300,250 500,150' fill='none' stroke='%232196f3' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M200,150 L300,150' fill='none' stroke='white' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E");
}

.save-overlay {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 300' width='600' height='300'%3E%3Crect x='150' y='75' width='300' height='150' fill='none' stroke='%23333' stroke-width='2' stroke-dasharray='5,5'/%3E%3Ctext x='250' y='160' font-family='Arial' font-size='14' fill='%23333'%3EСохранить область%3C/text%3E%3Cpath d='M300,80 L300,65 L350,100 L300,135 L300,120 L200,120 L200,80 Z' fill='%232196f3'/%3E%3C/svg%3E");
}

/* Features Comparison */
.features-comparison {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.features-comparison h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.table-container {
    overflow-x: auto;
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.features-table th {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: left;
    padding: 15px 20px;
}

.features-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--light-gray);
}

.features-table tbody tr:last-child td {
    border-bottom: none;
}

.features-table tbody tr:hover {
    background-color: rgba(33, 150, 243, 0.05);
}

.check {
    color: var(--accent-color);
    font-weight: bold;
}

.minus {
    color: var(--secondary-color);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    text-align: center;
    background-color: var(--white);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* For small mobile screens */
@media (max-width: 576px) {
    .features-hero h1 {
        font-size: 2rem;
    }
    
    .tool-tab {
        flex: 1 1 40%;
        text-align: center;
        font-size: 0.9rem;
        padding: 10px;
    }
    
    .features-table th, 
    .features-table td {
        padding: 10px;
    }
} 