/* styles.css */

/* Basic style reset and font settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Element selector - body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Element selector - header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Element selector - main */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Element selector - section */
section {
    margin: 2.5rem 0;
    padding: 1.5rem;
    border-radius: 10px;
    background: rgba(248, 249, 250, 0.8);
    border-left: 4px solid #667eea;
}

/* Element selector - h1 */
h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Element selector - h2 */
h2 {
    color: #34495e;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

/* Element selector - h3 */
h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* Element selector - p */
p {
    margin-bottom: 1rem;
    text-align: justify;
    font-size: 1.1rem;
}

/* Element selector - ul */
ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Element selector - ol */
ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Element selector - li */
li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

/* Element selector - strong */
strong {
    color: #e74c3c;
    font-weight: 600;
}

/* Element selector - em */
em {
    color: #8e44ad;
    font-style: italic;
}

/* Element selector - img */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Element selector - footer */
footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Element selector - a */
a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ID selector - #main-title */
#main-title {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-align: center;
}

/* Class selector - .subtitle */
.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Class selector - .properties-list */
.properties-list {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.properties-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.properties-list li:last-child {
    border-bottom: none;
}

/* Class selector - .operations-list */
.operations-list {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 1.5rem;
    border-radius: 8px;
    list-style: none;
}

.operations-list li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.operations-list li:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Class selector - .image-container */
.image-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 2px dashed #ccc;
}

.tree-diagram {
    max-width: 600px;
    margin: 1rem auto;
    display: block;
}

.image-caption {
    font-style: italic;
    color: #666;
    margin-top: 1rem;
    font-size: 0.95rem;
}

/* Class selector - .highlight-text */
.highlight-text {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #e17055;
    font-weight: 500;
    margin: 1.5rem 0;
}

/* Class selector - .advantages-content */
.advantages-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
}

/* Class selector - .reference-link */
.reference-link {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.reference-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    text-decoration: none !important;
}

/* Class selector - .footer-info */
.footer-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    main, footer {
        margin: 1rem;
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .operations-list li:hover {
        transform: none;
    }
}
