/* Grundläggande reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Typografi */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #004499;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: #0066cc;
}

.logo p {
    font-size: 0.9rem;
    color: #666;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: #333;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover {
    color: #0066cc;
}

nav ul li a.active {
    color: #0066cc;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0066cc;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #0066cc, #0099ff);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background-color: #ff6600;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e65c00;
    color: white;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Latest test section */
.latest-test,
.popular-tests,
.buying-guide,
.newsletter {
    padding: 60px 0;
}

.latest-test {
    background-color: white;
}

.latest-test h2,
.popular-tests h2,
.buying-guide h2,
.newsletter h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.test-highlight {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.test-image {
    flex: 0 0 40%;
    position: relative;
}

.test-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rating {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 102, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: 700;
}

.stars {
    color: #ffcc00;
}

.test-content {
    flex: 0 0 60%;
    padding: 30px;
}

.test-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.test-intro {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.specs-highlight {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.spec {
    text-align: center;
    flex: 1;
}

.spec i {
    font-size: 1.5rem;
    color: #0066cc;
    margin-bottom: 5px;
}

.spec span {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
}

.spec small {
    color: #666;
}

.pros-cons {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.pros, .cons {
    flex: 1;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

.pros h4 {
    color: #28a745;
}

.cons h4 {
    color: #dc3545;
}

.pros ul, .cons ul {
    list-style: none;
}

.pros ul li, .cons ul li {
    padding: 5px 0;
    padding-left: 25px;
    position: relative;
}

.pros ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: 700;
}

.cons ul li:before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: 700;
}

/* Popular tests section */
.popular-tests {
    background-color: #f0f5ff;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.test-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.test-card:hover {
    transform: translateY(-5px);
}

.card-image {
    position: relative;
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-image .rating {
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.card-content p {
    color: #666;
    margin-bottom: 15px;
    height: 50px;
    overflow: hidden;
}

.more-link {
    text-align: center;
    margin-top: 40px;
}

.more-link a {
    font-weight: 600;
}

/* Buying guide section */
.buying-guide {
    background-color: white;
    text-align: center;
}

.guide-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.guide-item {
    padding: 30px 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s;
}

.guide-item:hover {
    transform: translateY(-5px);
}

.guide-item i {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 15px;
}

.guide-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.guide-item p {
    color: #666;
}

/* Newsletter section */
.newsletter {
    background-color: #0066cc;
    color: white;
    text-align: center;
}

.newsletter h2,
.newsletter p {
    color: white;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.newsletter form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.newsletter button {
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

/* Footer */
footer {
    background-color: #222;
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: #0066cc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Responsiv design */
@media (max-width: 992px) {
    .test-highlight {
        flex-direction: column;
    }
    
    .test-image,
    .test-content {
        flex: 1 1 auto;
    }
    
    .specs-highlight {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .spec {
        flex: 1 1 40%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .pros-cons {
        flex-direction: column;
    }
    
    .newsletter form {
        flex-direction: column;
    }
    
    .newsletter input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .newsletter button {
        border-radius: 5px;
    }
}

@media (max-width: 576px) {
    .test-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .spec {
        flex: 1 1 100%;
    }
}