/*
Theme Name: TechBeta Modern
Theme URI: https://techbeta.org
Author: TechBeta Team
Author URI: https://techbeta.org
Description: Modern software download theme inspired by Softonic with clean design, easy management, and automated link validation
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techbeta-modern
Tags: software, download, modern, responsive, blue, clean
*/

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
}

a {
    color: #00a3e0;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #26d07c;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    background: linear-gradient(135deg, #00a3e0 0%, #26d07c 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: rgba(0,0,0,0.1);
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.platform-selector {
    display: flex;
    gap: 15px;
}

.platform-selector a {
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}

.platform-selector a:hover,
.platform-selector a.active {
    background: rgba(255,255,255,0.3);
}

.header-main {
    padding: 20px 0;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 32px;
    font-weight: 800;
    color: white !important;
    text-decoration: none;
}

.main-navigation {
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: white !important;
    font-weight: 600;
    padding: 10px 0;
    position: relative;
}

.main-navigation a:hover::after,
.main-navigation a.current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: white;
}

.search-form {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    width: 350px;
}

.search-form input[type="search"] {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
}

.search-form button {
    background: #26d07c;
    border: none;
    padding: 12px 25px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-form button:hover {
    background: #00a3e0;
}

/* ========================================
   HOME PAGE - FEATURED SECTION
   ======================================== */

.featured-section {
    background: white;
    padding: 40px 0;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 30px;
    background: linear-gradient(135deg, #00a3e0, #26d07c);
    border-radius: 2px;
}

/* ========================================
   SOFTWARE GRID
   ======================================== */

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.software-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.software-icon {
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #00a3e0 0%, #26d07c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.software-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.software-icon-placeholder {
    font-size: 60px;
    color: white;
}

.verified-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #26d07c;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.outdated-badge {
    background: #ff6b6b;
}

.software-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.software-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #2c3e50;
}

.software-title a {
    color: #2c3e50 !important;
}

.software-title a:hover {
    color: #00a3e0 !important;
}

.software-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.software-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
}

.software-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.btn-primary {
    background: #00a3e0;
    color: white !important;
    flex: 1;
}

.btn-primary:hover {
    background: #0088c4;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #f8f9fa;
    color: #2c3e50 !important;
    border: 2px solid #e1e4e8;
}

.btn-secondary:hover {
    border-color: #00a3e0;
    color: #00a3e0 !important;
}

/* ========================================
   SINGLE SOFTWARE PAGE
   ======================================== */

.single-software {
    background: white;
    border-radius: 12px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.software-header {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.software-icon-large {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    background: linear-gradient(135deg, #00a3e0 0%, #26d07c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.software-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.software-header-info {
    flex: 1;
}

.software-header h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.software-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
}

.detail-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
}

.download-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-download {
    background: linear-gradient(135deg, #00a3e0 0%, #26d07c 100%);
    color: white !important;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,163,224,0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,163,224,0.4);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-widget h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #bdc3c7;
}

.footer-widget ul li a:hover {
    color: #26d07c;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
    font-size: 14px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    .header-main .container {
        flex-direction: column;
        gap: 20px;
    }

    .main-navigation {
        flex-direction: column;
        width: 100%;
    }

    .search-form {
        width: 100%;
    }

    .software-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .software-header {
        flex-direction: column;
    }

    .download-actions {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .software-grid {
        grid-template-columns: 1fr;
    }

    .single-software {
        padding: 20px;
    }
}
