/**
 * Instagram Following Search - Stylesheet
 * Design System: Bianco e Nero, Mobile-First
 */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #000000;
    padding: 10px;
    line-height: 1.6;
}

/* Typography */
h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

p {
    margin-bottom: 0.8rem;
}

a {
    color: #000000;
    text-decoration: underline;
}

a:hover {
    opacity: 0.7;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
}

/* Card Component */
.card {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 4px 4px 0px #000000;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000000;
}

/* Buttons */
button, .btn {
    background: #000000;
    color: #ffffff;
    border: 2px solid #000000;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
    font-family: Arial, sans-serif;
}

button:hover, .btn:hover {
    background: #ffffff;
    color: #000000;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

.btn-secondary:hover {
    background: #000000;
    color: #ffffff;
}

.btn-danger {
    background: #ffffff;
    color: #ff0000;
    border: 2px solid #ff0000;
}

.btn-danger:hover {
    background: #ff0000;
    color: #ffffff;
}

/* Forms */
input[type="text"],
input[type="number"],
input[type="search"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #000000;
    font-size: 1rem;
    font-family: Arial, sans-serif;
    margin-bottom: 15px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: none;
    box-shadow: 4px 4px 0px #000000;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    cursor: pointer;
    margin-right: 8px;
}

label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 30px;
    background: #f0f0f0;
    border: 2px solid #000000;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #000000;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.stat-box {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 15px;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* Banner/Alert */
.banner {
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #000000;
    font-weight: bold;
}

.banner-warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.banner-success {
    background: #d4edda;
    border-color: #28a745;
}

.banner-error {
    background: #f8d7da;
    border-color: #dc3545;
}

.banner-info {
    background: #d1ecf1;
    border-color: #17a2b8;
}

/* Profile Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

.profile-card {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 15px;
    box-shadow: 3px 3px 0px #000000;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.profile-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px #000000;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #000000;
    margin-right: 15px;
}

.profile-info {
    flex: 1;
}

.profile-username {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.profile-fullname {
    color: #666666;
    font-size: 0.9rem;
}

.profile-bio {
    margin-bottom: 15px;
    line-height: 1.4;
    color: #333333;
}

.profile-category {
    background: #000000;
    color: #ffffff;
    padding: 5px 10px;
    display: inline-block;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.profile-keywords {
    margin-bottom: 10px;
}

.keyword-tag {
    display: inline-block;
    background: #f0f0f0;
    border: 1px solid #000000;
    padding: 3px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.profile-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666666;
}

.profile-link {
    margin-top: 10px;
    word-break: break-all;
    font-size: 0.85rem;
}

/* Log Box */
.log-box {
    background: #f9f9f9;
    border: 2px solid #000000;
    padding: 15px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
}

.log-box details {
    cursor: pointer;
}

.log-box summary {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.log-entry {
    margin-bottom: 10px;
    padding-left: 20px;
}

.log-step {
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 5px;
}

/* Batch Info */
.batch-info {
    background: #f0f0f0;
    border: 2px solid #000000;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.batch-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.batch-subtitle {
    color: #666666;
}

/* Phase Info */
.phase-info {
    background: #ffffff;
    border: 2px solid #000000;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 { gap: 10px; }
.gap-2 { gap: 20px; }

/* Responsive - Tablet */
@media (min-width: 600px) {
    body {
        padding: 20px;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        max-width: 95%;
    }
}

/* Responsive - Desktop */
@media (min-width: 1024px) {
    body {
        padding: 30px;
    }

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

    .container {
        max-width: 1200px;
    }

    h1 {
        font-size: 2.5rem;
    }
}

/* Responsive - Large Desktop */
@media (min-width: 1440px) {
    .container {
        max-width: 1600px;
    }

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

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
    border: 1px solid #000000;
}

::-webkit-scrollbar-thumb {
    background: #000000;
}

::-webkit-scrollbar-thumb:hover {
    background: #333333;
}
