/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Main content */
main {
    display: block;
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Tools section */
.tools-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.tools-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tool-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tool-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-align: center;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

/* Quick links */
.quick-links-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.quick-links-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #764ba2;
    padding-bottom: 0.5rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: #e9ecef;
    transform: translateY(-3px);
}

.link-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.link-text {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Ads sections */
.ads-section {
    margin: 2rem 0;
}

.amazon-ad {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.banner-ad {
    text-align: center;
    padding: 1rem;
}

.sidebar-ad {
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.ad-label {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-align: center;
}

.ad-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 5px;
    padding: 2rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.banner-ad .ad-placeholder {
    min-height: 100px;
}

.sidebar-ad .ad-placeholder {
    min-height: 250px;
}

/* Amazon Banner Styles */
.amazon-banner-link {
    text-decoration: none;
    display: block;
    width: 100%;
}

.amazon-banner {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 120px;
}

.amazon-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3);
}

.amazon-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 1rem;
}

.amazon-text {
    font-family: 'Arial', sans-serif;
    text-transform: lowercase;
    margin-right: 0.5rem;
}

.amazon-smile {
    font-size: 1.8rem;
}

.banner-content {
    flex: 1;
    text-align: center;
}

.banner-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.banner-content p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.cta-button {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.amazon-banner:hover .cta-button {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.banner-decoration {
    position: relative;
}

.offer-badge {
    background: #ff4757;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Footer */
footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

/* Apps section */
.apps-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.apps-section h2 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
}

/* Category sections */
.category-section {
    margin-bottom: 2.5rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1.5rem;
    padding: 0.8rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.category-icon {
    margin-right: 0.8rem;
    font-size: 1.5rem;
}

/* Apps grid */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #ffffff;
}

.app-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.app-card h4 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.app-card p {
    color: #666;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Warhammer TOW specific styling */
.category-section:first-child .category-title {
    background: linear-gradient(135deg, #8B0000 0%, #CD5C5C 100%);
    color: white;
    border-left-color: #8B0000;
}

.category-section:first-child .app-card {
    border-left-color: #8B0000;
}

.category-section:first-child .app-card::before {
    background: linear-gradient(90deg, #8B0000, #CD5C5C);
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .ads-section {
        grid-column: 1;
    }

    header h1 {
        font-size: 2rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .amazon-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 1rem;
    }

    .amazon-logo {
        margin-right: 0;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .banner-content h3 {
        font-size: 1.2rem;
    }

    .banner-content p {
        font-size: 0.9rem;
    }

    .banner-decoration {
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .tools-section,
    .quick-links-section {
        padding: 1.5rem;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .amazon-banner {
        padding: 1rem;
    }

    .banner-content h3 {
        font-size: 1.1rem;
    }

    .amazon-logo {
        font-size: 1.3rem;
    }
}
